ValidationError
Class
Common interface for all validation errors.
constructor
ValidationError
@paramoptions
ValidationErrorOptions | undefined
@returns
ValidationError
kind
string
Identifies the kind of error.
field
() => FieldState<unknown, string | number>
The field associated with this error.
message
string | undefined
Human readable error message.
[BRAND]
undefined
Brand the class to avoid Typescript structural matching
Description
Common interface for all validation errors.
Use the creation functions to create an instance (e.g. requiredError
, minError
, etc.).
Jump to details