Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

js Validating nested promises

import { ValidateNested, ValidatePromise } from 'class-validator';

export class Post {
  @ValidateNested()
  @ValidatePromise()
  user: Promise<User>;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #js #Validating #nested #promises
ADD COMMENT
Topic
Name
9+9 =