Template
1
0
Files
boilerplate/tests/mocks/user.ts
2025-04-18 20:18:50 +00:00

10 lines
203 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()),
});
export type User = z.infer<typeof UserSchema>;