cal.pub0.org/lib/validations/selected-calendar.ts

12 lines
314 B
TypeScript
Raw Normal View History

import { withValidation } from "next-validations";
import { z } from "zod";
2022-03-30 12:17:55 +00:00
const schemaSelectedCalendar = z.object({}).strict();
const withValidSelectedCalendar = withValidation({
schema: schemaSelectedCalendar,
type: "Zod",
mode: "body",
});
export { schemaSelectedCalendar, withValidSelectedCalendar };