libs/dtos/src/generics/Validateable.dto.ts
Properties |
|
constructor(init: any)
|
||||||
Defined in libs/dtos/src/generics/Validateable.dto.ts:3
|
||||||
Parameters :
|
Public validate |
Type : function
|
import { validate as CVValidate, ValidationError } from 'class-validator'
export class ValidateableDto {
constructor(init: any) {
this.validate = async () => {
return await CVValidate(this)
}
Object.assign(this as object, init)
}
public validate: () => Promise<ValidationError[]>
}