Type parameter | Description |
---|---|
TInputs: InputGroupContent |
the type of the validator's input structure. |
TDomainValue |
the type of the validator's domain interpretation of the inputs. |
TParseError |
the type of the validator's description of input format error. |
TDomainError |
the type of the validator's description of the domain value error. |
Specifies validation for the domain value that is obtained by parsing the input value.
Debug-friendly name that can be back-queried from the state instance.
If true, input action on the inputs contributing to this validator will cause the validator to validate. Otherwise, the default behavior is to only validate when a contributing input is confirmed.
Specifies whether the domain validation should take place. This has consequences when automatically validating input as a result of confirming inputs and submitting a form.
reflects back the validator instance when specifying an arrow function as predicate.
Specifies how a domain value might be formatted back into the input value given by this validator. This must be a pure, synchronous function returning a corresponding shape of input value from the domain value.
The domain value to format as input value.
Specifies how the input value should be converted to a domain value, as well as any error that is encountered while parsing. This must be a pure, synchronous function returning one of the following:
Generated using TypeDoc
Describes the settings of a validator.