Type Alias: AlphanumericValidationOptions
type AlphanumericValidationOptions = {
ignore?: string | RegExp;
locale?: Locale;
message?: string;
type: IsAlphanumeric;
};
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 |
IsAlphanumeric |
Validates that a string contains only letters and numbers. |