11 lines
189 B
TypeScript
11 lines
189 B
TypeScript
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
export class LoginDto {
|
|
@IsNotEmpty()
|
|
@IsEmail()
|
|
email: string;
|
|
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
password: string;
|
|
}
|