File

apps/api/src/user/dto/user-update.dto.ts

Implements

Partial

Index

Properties

Properties

Readonly firstName
Decorators :
@IsDefined()
@IsString()
@IsNotEmpty()
Readonly lastName
Decorators :
@IsDefined()
@IsString()
@IsNotEmpty()
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
}

results matching ""

    No results matching ""