From e69c76433c630ee4c75b9f210bf0eabd9dc9728b Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Sun, 2 Feb 2025 23:03:07 +0330 Subject: [PATCH] updated address type --- frontend/types/global.d.ts | 53 ++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index e28b8ce..0332504 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -20,7 +20,7 @@ declare global { email: string; profile_photo: string; phone: string; - } + }; type Product = { id: number; @@ -28,10 +28,10 @@ declare global { name: string; description: string; currency: string; - "video": string | null, - "image1": string, - "image2": string, - "image3": string, + video: string | null; + image1: string; + image2: string; + image3: string; rating: number; view: number; sell: number; @@ -44,40 +44,43 @@ declare global { }; type UserComment = { - "id": number, - "content": string, - "timestamp": string, - "show": boolean, - "product": number, - "user": number - } + id: number; + content: string; + timestamp: string; + show: boolean; + product: number; + user: number; + }; type Category = { id: number; name: string; slug: string; icon: string; - "product_count": string, - "subcategorys": SubCategory[] + product_count: string; + subcategorys: SubCategory[]; }; type SubCategory = { - "id": number, - "name": string, - "slug": string, - "icon": string, - "image": string, - "product_count": string, - "parent": string, - "show": boolean - } + id: number; + name: string; + slug: string; + icon: string; + image: string; + product_count: string; + parent: string; + show: boolean; + }; type Address = { - id: number; + id: number | undefined; province: string; city: string; postal_code: string; - full_address: string; + address: string; + phone: string; + name: string; + for_me: "خیر" | "بله"; }; type DeliveryMethod = {