From bc0f4abdeab04677a2c057293e0d34481e95faf2 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Fri, 14 Feb 2025 01:22:45 +0330 Subject: [PATCH] updated address type --- frontend/types/global.d.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index 9ba04d1..72a5ca9 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -95,13 +95,14 @@ declare global { type Address = { id: number | undefined; - province: string; - city: string; - postal_code: string; - address: string; - phone: string; - name: string; - for_me: "خیر" | "بله"; + province: string | undefined; + city: string | undefined; + postal_code: string | undefined; + address: string | undefined; + phone: string | undefined; + name: string | undefined; + for_me: "خیر" | "بله" | boolean; + is_main: boolean; }; type DeliveryMethod = {