10 lines
221 B
TypeScript
10 lines
221 B
TypeScript
import { z } from "zod";
|
|
|
|
export const registerSchema = z.object({
|
|
email: z.string().email(),
|
|
password: z.string().min(6),
|
|
name: z.string().optional(),
|
|
});
|
|
|
|
export type RegisterDto = z.infer<typeof registerSchema>;
|