cal.pub0.org/packages/trpc/server/routers/viewer/apps/toggle.schema.ts

9 lines
189 B
TypeScript

import { z } from "zod";
export const ZToggleInputSchema = z.object({
slug: z.string(),
enabled: z.boolean(),
});
export type TToggleInputSchema = z.infer<typeof ZToggleInputSchema>;