fix: extend bedType to include discription and roomTypeCode

This commit is contained in:
Christel Westerberg
2024-11-05 16:40:00 +01:00
parent bf316fe0d0
commit a708eedfd4
8 changed files with 43 additions and 28 deletions

View File

@@ -1,8 +1,11 @@
import { z } from "zod"
import { bedTypeSchema } from "@/components/HotelReservation/EnterDetails/BedType/schema"
import {
bedTypeFormSchema,
bedTypeSchema,
} from "@/components/HotelReservation/EnterDetails/BedType/schema"
export type BedType = {
export type BedTypeSelection = {
description: string
size: {
min: number
@@ -11,7 +14,9 @@ export type BedType = {
value: string
}
export type BedTypeProps = {
bedTypes: BedType[]
bedTypes: BedTypeSelection[]
}
export interface BedTypeFormSchema extends z.output<typeof bedTypeFormSchema> {}
export interface BedTypeSchema extends z.output<typeof bedTypeSchema> {}