UNPKG

@kazion/create-app

Version:

A cli tool to help you get started with graphql and rest api's with typescript

12 lines (9 loc) 279 B
import * as z from 'zod'; export const UserSchema = z.object({ name: z.string(), phoneNumber: z.string().min(10).max(10), email: z.string().email(), password: z.string().min(5), avatar: z.string().optional(), }); export type UserPayload = z.infer<typeof UserSchema>;