From 44776ecb1298f8f91f7121f9d13f23df85e4e860 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 9 Apr 2024 16:00:29 +0700 Subject: [PATCH] refactor: nullable field --- src/stores/user/types.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/stores/user/types.ts b/src/stores/user/types.ts index 8aab4fd8..44fbaa08 100644 --- a/src/stores/user/types.ts +++ b/src/stores/user/types.ts @@ -51,16 +51,16 @@ export type UserCreate = { gender: string; addressEN: string; address: string; - trainingPlace?: string; - importNationality?: string; - sourceNationality?: string; + trainingPlace?: string | null; + importNationality?: string | null; + sourceNationality?: string | null; licenseExpireDate?: Date | null; licenseIssueDate?: Date | null; - licenseNo?: string; + licenseNo?: string | null; discountCondition?: string; retireDate?: Date | null; startDate?: Date | null; - registrationNo?: string; + registrationNo?: string | null; lastNameEN: string; lastName: string; firstNameEN: string; @@ -68,5 +68,5 @@ export type UserCreate = { userRole: string; userType: string; keycloakId: string; - profileImage?: File; + profileImage: File; };