SW-65 Moved type to /types

This commit is contained in:
Hrishikesh Vaipurkar
2024-08-01 16:11:05 +02:00
parent 23c97db987
commit 1dfcd144fb
4 changed files with 19 additions and 8 deletions

View File

@@ -14,11 +14,15 @@ export const bookingWidgetSchema = z.object({
redemption: z.boolean().default(false),
voucher: z.boolean().default(false),
rooms: z.array(
// This will be updated when working in guests component
z.object({
Adults: z.number().default(1),
Child: z.number().default(0),
adults: z.number().default(1),
childs: z.array(
z.object({
age: z.number(),
bed: z.number(),
})
),
})
),
})
export type BookingWidgetSchema = z.infer<typeof bookingWidgetSchema>