ConstValidates an array and each of its items.
Validates a boolean value.
Validates one of the provided string literal values.
Validates a literal value.
Makes another validator nullable.
Validates a number value.
Validates an object against a schema shape.
Makes another validator optional.
Runs a validator and throws SchemaValidationError on failure.
Runs a validator against a FormData payload and throws on failure.
Repeated keys are exposed as arrays in insertion order.
Validates a plain object record.
Adds a custom predicate to an existing validator.
Runs a validator and returns a result object instead of throwing.
Runs a validator against a FormData payload and returns a result object.
Repeated keys are exposed as arrays in insertion order.
Validates a string value.
Maps a validated value into a new output type.
Validates a tuple with a fixed number of items and validators.
Validates a value against either of two validators.
Applies a fallback value when the input is undefined.
Shorthand alias for
Validator.