Preparing search index...
The search index is not available
@neozen/validzen - v
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@neozen/validzen
validZenTypesConformityValidators
Variable validZenTypesConformityValidators
Const
valid
Zen
Types
Conformity
Validators
:
any
= ...
@neozen/validzen
wrap
Property
Decorator
Using
Validate
By
Wrap a PropertyDecorator factory function, that uses ValidateBy, like the class-validator ones, and convert it to Validator Function so it can be used in ValidZen. A Validator Function can be:
Validation
Options
Wrapped
TProperty
Decorator
Based
On
Validate
By
Validate
By
As
Validator
Function
This is the drop-in replacement for class-validator's ValidateBy() function.
TValidate
By
As
Validator
Function
Return
Type
get
Validation
Errors
String
transform
And
Validate
Sync
Fix
Fixes transformAndValidateSync that throws "unexpected token 'i', "filename" is not valid JSON" for string!
validate
Object
Transform
Valid
Zen
Options
valid
Zen
Types
Conformity
Validators
Valid
Zen
Validator
get
Validators
Types
[
Or
And
$
Or
And
Is
Array
With
Allowed
Values
Checks if a given value is an Array, with any values contained strictly on allowedValues array.
$
Is
Array
With
Allowed
Values
Checks if a given value is an Array, with any values contained strictly on allowedValues array.
Is
Number
Enum
Key
Or
Value
Checks if a given value is the member of the provided enum, in either side, case-insensitive.
$
Is
Number
Enum
Key
Or
Value
Checks if a given value is the member of the provided enum, in either side, case-insensitive.
Valid
Zen
Validation
Error