Type Alias ValidationErrors

ValidationErrors: {
    customValidityMessage?: string | null;
    [error: string]: any;
}

Defines the map of errors returned from failed validation checks.

Type declaration

  • [error: string]: any

    any error name that

  • OptionalcustomValidityMessage?: string | null

    Adds a custom error message to the element; if you set a custom error message, the element is considered to be invalid, and the specified error is displayed. This lets you use JavaScript code to establish a validation failure other than those offered by the standard HTML validation constraints. The message is shown to the user when reporting the problem.