Files
boilerplate/apps/react/src/stores/user.ts
2025-11-23 22:57:43 +01:00

12 lines
285 B
TypeScript

import { ContactSchema } from "@spec/schemas/contact.ts";
import { NameSchema } from "@spec/schemas/name.ts";
import z from "zod";
export const UserSchema = z.object({
id: z.string(),
name: NameSchema,
contact: ContactSchema,
});
export type User = z.infer<typeof UserSchema>;