apps/api/src/user/dto/user-update.dto.ts
Partial
Properties |
Readonly firstName |
Decorators :
@IsDefined()
|
Defined in apps/api/src/user/dto/user-update.dto.ts:8
|
Readonly lastName |
Decorators :
@IsDefined()
|
Defined in apps/api/src/user/dto/user-update.dto.ts:13
|
import { IsDefined, IsString, IsNotEmpty } from 'class-validator'
import { UserInterface } from '@isomera/interfaces'
export class UserUpdate implements Partial<UserInterface> {
@IsDefined()
@IsString()
@IsNotEmpty()
readonly firstName
@IsDefined()
@IsString()
@IsNotEmpty()
readonly lastName
}