cal.pub0.org/packages/trpc/server/routers/publicViewer/event.schema.ts

11 lines
256 B
TypeScript

import z from "zod";
export const ZEventInputSchema = z.object({
username: z.string(),
eventSlug: z.string(),
isTeamEvent: z.boolean().optional(),
org: z.string().nullable(),
});
export type TEventInputSchema = z.infer<typeof ZEventInputSchema>;