src/models/user/dto/delete-user.dto.ts
Describes the fields needed to delete an User
Properties |
currentPassword |
Type : string
|
Decorators :
@IsString()
|
Defined in src/models/user/dto/delete-user.dto.ts:11
|
User current password
|
import { IsNotEmpty, IsString } from 'class-validator';
/** Describes the fields needed to delete an User */
export class DeleteUserDto {
/**
* User current password
* @example "abc123456"
*/
@IsString()
@IsNotEmpty()
currentPassword: string;
}