Files
web/components/HotelReservation/EnterDetails/Breakfast/schema.ts

12 lines
304 B
TypeScript

import { z } from "zod"
import { breakfastPackageSchema } from "@/server/routers/hotels/output"
export const breakfastStoreSchema = z.object({
breakfast: breakfastPackageSchema.or(z.literal(false)),
})
export const breakfastFormSchema = z.object({
breakfast: z.string().or(z.literal("false")),
})