Type Alias: AlphaValidationOptions
type AlphaValidationOptions = {
ignore?: string | RegExp;
locale?: Locale;
message?: string;
type: IsAlpha;
};
Properties
| Property |
Type |
Description |
ignore? |
string | RegExp |
A string containing characters to be ignored. |
locale? |
Locale |
The locale of the input string. Defaults to en-US. |
message? |
string |
The message to display if the response fails validation. If unspecified, displays a generic message. |
type |
IsAlpha |
Validates that a string contains only letters. |