Interface ErrorMessage

A single error message. If an error exists on a field, this will be in the errors object under the field's key. Otherwise, it is undefined.

See

Hierarchy

  • ErrorMessage

Properties

Properties

error: keyof ErrorStrings | "validate"

The type of validation error on the field, such as required, minLength, maxLength, and pattern, or validate for custom validations

See

message: string

The error message for the field.

Generated using TypeDoc