Validate
Callable
Type parameters
- T
Parameters
validators: ValidationOptions<T> | ValidationOptions<T>[]
optionaltransform: (value: any) => any
Returns (target: any, propertyKey: string) => void
Parameters
target: any
propertyKey: string
Returns void
A
@Validate
is a property decorator to validate a property. It is typically used in Schema to validate schema properties.Decorators
Techniques for Validation.