Type Alias: NumericValidationOptions
type NumericValidationOptions = {
message?: string;
no_symbols?: boolean;
type: IsNumeric;
};
Properties
| Property | Type | Description |
|---|---|---|
message? |
string |
The message to display if the response fails validation. If unspecified, displays a generic message. |
no_symbols? |
boolean |
If true, the validator will reject numeric strings that feature a symbol (e.g. +, -, or .) |
type |
IsNumeric |
Validates that a string contains only numbers. |