Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

class validator array of enum

  @IsOptional()
  @IsEnum(Permissions, { each: true })
  readonly permissions: Permissions[];
Source by github.com #
 
PREVIOUS NEXT
Tagged: #class #validator #array #enum
ADD COMMENT
Topic
Name
5+1 =