Builds a validator function that requires the input array NOT to contain the given value.
Builds a validator function that requires the input array to contain the given value.
Requires the input value to be an array.
Builds a validator function that requires the input array to have exactly len
many entries.
Builds a validator function that requires the input array to have at most len
many entries.
Builds a validator function that requires the input array to have at least len
many entries.
Casts the input value to a boolean.
Note that this assumes the value may be boolish. The strings "true", "True",
"TRUE", and "1" evaluate to true
, while "false", "False", "FALSE", and "0"
evaluate to false
.
Attempt to infer the native type of a string value.
Casts the input value to an integer. Fails otherwise.
Casts the input value to a number, if it is numerical. Fails otherwise.
Casts the input value to a string.
Alias of prohibited().
Requires the given input value to be some form of affirmative boolean.
Requires the given input value to be some form of boolean.
Alias of prohibited().
Requires the given input value to be a UniversalPath.
Alias of required().
Builds a validator function that requires the given input to be found in an array of values.
Requires the given input value to be integer-like.
Builds a validator function that requires the given input NOT to be found in an array of values.
Requires the input value to be number-like.
A special validator function that marks a field as optional. If the value of the field is nullish, no further validation rules will be applied. If it is non-nullish, validation will continue.
Alias of required().
Requires the given input value to be absent or nullish.
Requires the given input value to be present and non-nullish.
Requires the input value to be of type string.
Builds a validator function that requires the input value to be at least some value.
Builds a validator function that requires the input value to be at most some value.
Builds a validator function that requires the input value to begin with the given number sequence.
Builds a validator function that requires the input value to have exactly num
many digits.
Builds a validator function that requires the input value to have at most num
many digits.
Builds a validator function that requires the input value to have at least num
many digits.
Builds a validator function that requires the input value to end with the given number sequence.
Requires the input value to be even.
Builds a validator function that requires the input value to be greater than some value.
Builds a validator function that requires the input value to be less than some value.
Builds a validator function that requires the input value to be a multiple of the given number.
Requires the input value to be odd.
Requires the input value to be alphabetical characters only.
Requires the input value to be alphabetical characters or the "-" character only.
Requires the input value to be alphanumeric characters only.
Requires the input value to be alphabetical characters, numeric characters, "-", or "_" only.
Requires the input value to be alphabetical characters or the "_" character only.
Builds a validation function that requires the given input to begin with the substring.
Validator function that requires the input value to match a ${field}Confirm
field's value.
Requires the input value to be a valid RFC email address format.
Builds a validation function that requires the given input to end with the substring.
Requires the input value to be a valid IPv4 or IPv6 address.
Requires the input value to be a valid IPv4 address.
Requires the input value to be a valid IPv6 address.
Requires the input value to be a valid JSON string.
Builds a validator function that requires the input value to have exactly len many characters.
Builds a validator function that requires the input value to have at most len many characters.
Builds a validator function that requires the input value to have at least len many characters.
Requires the input value to be a valid file MIME type.
Builds a validation function that requires the input to NOT match the given regex.
Builds a validation function that requires the input value to match the given regex.
Requires the input value to be a valid RFC URL format.
Requires the input value to be a valid RFC UUID format.
extollo (v. latin) - to lift up, to elevate
Extollo is a free & libre application framework in TypeScript.
Requires the values in the input value array to be distinct.