JS walidacja obietnic
// If your object contains property with Promise-returned
// value that should be validated, then you need to use
// the @ValidatePromise() decorator:
import { ValidatePromise, Min } from 'class-validator';
export class Post {
@Min(0)
@ValidatePromise()
userId: Promise<number>;
}
Puzzled Puffin