2
0
Files

19 lines
357 B
TypeScript
Raw Permalink Normal View History

2024-08-09 00:39:27 +02:00
import { z } from "zod";
export const ZCreateInputSchema = z.object({
name: z.string(),
schedule: z
.array(
z.array(
z.object({
start: z.date(),
end: z.date(),
})
)
)
.optional(),
eventTypeId: z.number().optional(),
});
export type TCreateInputSchema = z.infer<typeof ZCreateInputSchema>;