cal.pub0.org/packages/trpc/server/routers/viewer/auth/sendVerifyEmailCode.schema.ts

10 lines
267 B
TypeScript

import { z } from "zod";
export const ZSendVerifyEmailCodeSchema = z.object({
email: z.string().min(1),
username: z.string().optional(),
language: z.string().optional(),
});
export type TSendVerifyEmailCodeSchema = z.infer<typeof ZSendVerifyEmailCodeSchema>;