File

src/user/dto/create-user.dto.ts

Index

Properties

Properties

Readonly email
email: string
Type : string
Decorators :
@IsNotEmpty()
Readonly password
password: string
Type : string
Decorators :
@IsNotEmpty()
Readonly username
username: string
Type : string
Decorators :
@IsNotEmpty()
import { IsNotEmpty } from 'class-validator';

export class CreateUserDto {

  @IsNotEmpty()
  readonly username: string;

  @IsNotEmpty()
  readonly email: string;

  @IsNotEmpty()
  readonly password: string;
}

result-matching ""

    No results matching ""