@kazion/create-app
Version:
A cli tool to help you get started with graphql and rest api's with typescript
11 lines (8 loc) • 317 B
text/typescript
import * as z from 'zod';
import { UserSchema } from '~/modules/users/user.schema';
export const UserLoginSchema = z.object({
phoneNumber: z.string().min(10).max(10),
password: z.string(),
});
export type UserPayload = z.infer<typeof UserSchema>;
export type UserLoginPayload = z.infer<typeof UserLoginSchema>;