refactor: update type

This commit is contained in:
Methapon2001 2024-04-17 13:51:55 +07:00
parent 5c1cc88a48
commit 38e2eef6ed
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,5 @@
export type BranchContact = {
id: string;
lineId: string;
telephoneNo: string;
qrCodeImageUrl: string;
updatedAt: string;
@ -11,6 +10,5 @@ export type BranchContact = {
};
export type BranchContactCreate = {
lineId: string;
telephoneNo: string;
};

View file

@ -14,7 +14,8 @@ export type Branch = {
isHeadOffice: boolean;
longitude: string;
latitude: string;
telephoneNo: string;
contactName: string;
qrCodeImageUrl: string;
email: string;
zipCode: string;
subDistrictId: string | null;
@ -39,7 +40,8 @@ export type BranchCreate = {
address: string;
zipCode: string;
email: string;
telephoneNo: string;
contactName: string;
telephoneNo: string | string[];
longitude: string;
latitude: string;
subDistrictId?: string | null;