File

src/auth/dtos/auth-status-user.dto.ts

Index

Properties

Properties

email
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsEmail()
isDisabled
Type : boolean
Decorators :
@ApiProperty({type: 'boolean'})
@IsBoolean()
import { ApiProperty } from "@nestjs/swagger";
import { IsBoolean, IsEmail } from "class-validator";

export class AllowDisallowDto {
  @ApiProperty({ type: "string" })
  @IsEmail()
  email: string;

  @ApiProperty({ type: "boolean" })
  @IsBoolean()
  isDisabled: boolean;
}

results matching ""

    No results matching ""