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;