diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index be20f78..1c1bfbe 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -109,10 +109,7 @@ declare global { colors: string[]; }; - type ProductListItem = Pick< - Product, - "id" | "variants" | "name" | "rating" | "slug" | "category" | "colors" - >; + type ProductListItem = Pick; type Article = { id: number; @@ -193,13 +190,7 @@ declare global { id: number; count: number; images: string[]; - status: - | "ADMIN_PENDING" - | "PENDING" - | "POSTED" - | "RECEIVED" - | "CANCELED" - | "REFUND"; + status: "ADMIN_PENDING" | "PENDING" | "POSTED" | "RECEIVED" | "CANCELED" | "REFUND"; verbose_status: string; is_paid: boolean; created_at: string; @@ -248,6 +239,7 @@ declare global { cart_total: string; tax: string; final_price: string; + address: Address; }; type ServerFile = { @@ -281,14 +273,7 @@ declare global { id: number; picture: string; title: string; - type: - | "ZARINPAL" - | "SEP" - | "MELLAT" - | "IDPAY" - | "ZIBAL" - | "BAHAMTA" - | "BMI"; + type: "ZARINPAL" | "SEP" | "MELLAT" | "IDPAY" | "ZIBAL" | "BAHAMTA" | "BMI"; }; type Transaction = {