UNPKG

@tmlmobilidade/types

Version:

This package provides shared Zod validation schemas and their corresponding TypeScript types for use across projects. All types are automatically inferred from the schemas to ensure full type safety and reduce maintenance overhead.

14 lines (13 loc) 322 B
/* * */ import { z } from 'zod'; /* * */ export const LoginDtoSchema = z.object({ email: z.string({ required_error: 'Email is required', }).email({ message: 'Email must be a valid email address', }), password: z.string({ required_error: 'Password is required', }), }).strict();