From 792b142c07d1922a4b0c7b8939d91a01531c40b4 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 2 Jan 2026 11:18:05 +0300 Subject: [PATCH] fix: delete unused types --- src/shared/types/common.ts | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/src/shared/types/common.ts b/src/shared/types/common.ts index 2c1f8c8..8bcc1b7 100644 --- a/src/shared/types/common.ts +++ b/src/shared/types/common.ts @@ -1,37 +1,4 @@ -/** - * Model of response with error - */ -export interface ApiErrorResponse { - /** - * Error text - */ - error: string; - /** - * Status - */ - status: number; - /** - * Status text - */ - statusText: string; -} - -/** - * Model of response with success - */ -export interface ApiSuccessResponse { - /** - * Data - */ +export interface ApiResponse { data: T; - /** - * Status - */ status: number; - /** - * Status text - */ - statusText: string; } - -export type ApiResponse = ApiErrorResponse | ApiSuccessResponse;