From d65d3bd907075b13006f257316a98076edccf72c Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Tue, 28 Jan 2025 19:51:29 +0330 Subject: [PATCH] Update types --- frontend/types/global.d.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index 147e603..3100cff 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -51,9 +51,21 @@ declare global { meta_title: string; meta_description: string; parent: number; - children: "string"; + "product_count": string, + "subcategorys": SubCategory[] }; + type SubCategory = { + "id": number, + "name": string, + "slug": string, + "icon": string, + "meta_title": string, + "meta_description": string, + "product_count": string, + "show": boolean + } + type Address = { id: number; province: string;