next-enterprise/zodSchema/login.tsx
2024-04-19 12:07:24 +00:00

8 lines
170 B
TypeScript

import z from "zod"
export const loginSchema = z.object({
email: z.string().email(),
password: z.string().min(8),
})
export type User = z.infer<typeof loginSchema>