Files
cpost-mobile/src/screens/auth/login/lib/form.ts
Samandar Turgunboyev 9aac17072f bug fix
2025-10-02 17:05:40 +05:00

11 lines
309 B
TypeScript

// form.ts
import { z } from 'zod';
export const loginSchema = z.object({
phone: z.string().min(12, 'Xato raqam kiritildi'),
passportSeriya: z.string().length(2, '2 ta harf kerak'),
passportNumber: z.string().length(7, '7 ta raqam kerak'),
});
export type LoginFormType = z.infer<typeof loginSchema>;