Property decorator that constrains the property to be an array.
Property decorator that constrains the property to be a boolean.
Property decorator that constrains the property to be a Date.
Property decorator that constrains the property to be a Function.
Returns the Joi schema associated with a class or undefined if there isn't one.
Returns whether the given class has a Joi schema associated with it
Returns true if validation result failed validation.
The validation result to test.
Returns true if validation result passed validation.
The validation result to test.
Property decorator that constrains the property to another schema. This allows defining classes that reference themself. e.g.
Property decorator that constrains the property to be a number.
Property decorator that constrains the property to be an object.
Property decorator that constrains the property to be a string.
Validates an instance of a decorated class.
Instance of decorated class to validate.
Optional validation options to use. These override any default options.
Validates an array of plain old javascript objects against a decorated class.
Objects to validate.
Optional validation options to use. These override any default options.
Validates a plain old javascript object against a decorated class.
Object to validate.
Optional validation options to use. These override any default options.
Generated using TypeDoc
Property decorator that allows the property to be any type.