FieldValidationResult
Type Alias
The result of running a field validation function.
API
type FieldValidationResult<E extends ValidationError = ValidationError> = | ValidationSuccess | OneOrMany<WithoutField<E>>
Description
The result of running a field validation function.
The result may be one of the following:
- A
ValidationSuccess
to indicate no errors. - A
ValidationError
without a field to indicate an error on the field being validated. - A list of
ValidationError
without fields to indicate multiple errors on the field being validated.
Jump to details