cal.pub0.org/lib/validations/schedule.ts

12 lines
274 B
TypeScript
Raw Normal View History

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