From aa4cde7765d908028faf722da9f82882f231cd7b Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Wed, 19 Mar 2025 18:03:08 +0330 Subject: [PATCH] Updated --- frontend/types/global.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index 6362e85..2602b13 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -8,6 +8,26 @@ declare global { results: T[]; }; + type LogType = { + title: string; + status?: "success" | "error" | "info" | "warning"; + message?: string, + details?: any + } + + type AxiosLogType = { + url: string, + method: string, + status: number, + code: string, + requestHeaders: Record, + responseHeaders: Record, + response?: Record, + payload?: Record, + params?: Record, + date: string + } + type Chat = { id: number; sender: "ai" | "user";