Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

typescript class validator validate enum array

export class UserDto {
  @IsEmail()
  readonly email: string;

  @IsOptional()
  @IsEnum(Permissions, { each: true })
  readonly permissions: Permissions[]; <- How to validate this?
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: npm run scripts does not work 
Typescript :: content script matches all 
Typescript :: web.contents timeout 
Typescript :: typescript make object optional 
Typescript :: how to read temp file in windowsnodejs 
Typescript :: how to remove the last item from a collection powerapps 
Typescript :: getstaticpaths errors after new posts 
Typescript :: typescript function type 
Typescript :: stripe create subscription 
Typescript :: update behaviorsubject value without emitting 
Typescript :: [(ngModel)] input error 
Typescript :: how to show array of objects in flatlist react native 
Typescript :: css how to make a elements of same type start at same height 
Typescript :: typescript variable 
Typescript :: typescript foreach async await 
Typescript :: promise.all inside useEffect 
Typescript :: how to add custom snippets in emmet in visual studio code 
Typescript :: what is the importance of testng xml file 
Typescript :: Pass parameter to NestJs Guard 
Typescript :: Push Type Typescript 
Typescript :: tsconfig-paths/register mocha 
Typescript :: find elements by xpath with matching text 
Typescript :: mongodb find documents where two fields are equal 
Typescript :: gpluss logi ionic4 
Typescript :: tsc : File C:UsersajayAppDataRoaming pm sc.ps1 cannot be loaded because running scripts is disabled on this system. 
Typescript :: dividing a number into digits typescript 
Typescript :: remove white border around components angular 
Typescript :: Simple code example of adding two numbers in typescript 
Typescript :: Angular 12: Trigger multiple child components at once 
Typescript :: online doctor appointments in pakistan 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =