Validation result

propertytypedescription
statestringEither valid or invalid.
fieldstringEither the field name or undefined.
valueanyThe parsed value.
messagestringThe error message unless state is valid.
errorsanyOnly if state is invalid and using the object or array validators.
isValidbooleanDeprecated. Use state instead.