From 0502e9a3fe2fa377365b6337052b060ce4959c24 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Wed, 11 Dec 2024 20:15:50 +0330 Subject: [PATCH] Add global types --- frontend/types/global.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 frontend/types/global.d.ts diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts new file mode 100644 index 0000000..bc70bd1 --- /dev/null +++ b/frontend/types/global.d.ts @@ -0,0 +1,10 @@ +export {}; + +declare global { + type ApiPaginated = { + count: number; + next: string | null; + previous: string | null; + results: T[]; + }; +}