8 lines
126 B
TypeScript
8 lines
126 B
TypeScript
|
import { IsEmail, IsNotEmpty } from 'class-validator'
|
||
|
|
||
|
export class EmailDto {
|
||
|
@IsNotEmpty()
|
||
|
@IsEmail()
|
||
|
email: string
|
||
|
}
|