mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
import { z } from "zod";
|
|
|
|
export const updateEmailDto = z.object({
|
|
email: z
|
|
.string()
|
|
.trim()
|
|
.max(64, {message: 'Email must be less than 64 characters'})
|
|
.email({message: 'Please enter a valid email'})
|
|
});
|
|
|
|
export type UpdateEmailDto = z.infer<typeof updateEmailDto>;
|