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

12 lines
284 B
TypeScript
Raw Normal View History

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