cal.pub0.org/packages/trpc/server/routers/viewer/teams/acceptOrLeave.schema.ts

9 lines
211 B
TypeScript

import { z } from "zod";
export const ZAcceptOrLeaveInputSchema = z.object({
teamId: z.number(),
accept: z.boolean(),
});
export type TAcceptOrLeaveInputSchema = z.infer<typeof ZAcceptOrLeaveInputSchema>;