12 lines
314 B
TypeScript
12 lines
314 B
TypeScript
import { z } from "zod"
|
|
|
|
import { breakfastPackageSchema } from "@/server/routers/hotels/schemas/packages"
|
|
|
|
export const breakfastStoreSchema = z.object({
|
|
breakfast: breakfastPackageSchema.or(z.literal(false)),
|
|
})
|
|
|
|
export const breakfastFormSchema = z.object({
|
|
breakfast: z.string().or(z.literal("false")),
|
|
})
|