ValidationResult
Type Alias
A validation result where all errors explicitly define their target field.
API
type ValidationResult<E extends ValidationError = ValidationError> = | ValidationSuccess | OneOrMany<E>
Description
A validation result where all errors explicitly define their target field.
The result may be one of the following:
- A
ValidationSuccess
to indicate no errors. - A
ValidationError
with a field to indicate an error on the target field. - A list of
ValidationError
with fields to indicate multiple errors.
Jump to details