Template
1
0
Files
boilerplate/tests/mocks/user.ts
2025-04-18 21:22:49 +00:00

11 lines
233 B
TypeScript

import z from "zod";
export const UserSchema = z.object({
id: z.string().check(z.uuid()),
name: z.string(),
email: z.string().check(z.email()),
createdAt: z.coerce.date(),
});
export type User = z.infer<typeof UserSchema>;