Interface: ValidatorEntry
Imported from
@react-logic/utilsDefined in: utils/src/lib/forms.ts:114
One validation rule on a field. name is required (becomes the error key
in the snapshot's errors tree); message defaults to name on failure;
htmlAttrs ride along into the input's bind props.
Type Parameters
T
T
The field's value type.
Properties
fn
readonlyfn: (value) =>boolean
Defined in: utils/src/lib/forms.ts:116
Parameters
value
T
Returns
boolean
htmlAttrs?
readonlyoptionalhtmlAttrs?:HTMLValidationAttrs
Defined in: utils/src/lib/forms.ts:118
message?
readonlyoptionalmessage?:string
Defined in: utils/src/lib/forms.ts:117
name
readonlyname:string
Defined in: utils/src/lib/forms.ts:115