Type Alias: LengthValidationOptions
type LengthValidationOptions = {
max?: number;
message?: string;
min?: number;
type: IsLength;
};
Properties
| Property | Type | Description |
|---|---|---|
max? |
number |
The maximum length of the string. |
message? |
string |
The message to display if the response fails validation. If unspecified, displays a generic message. |
min? |
number |
The minimum length of the string. |
type |
IsLength |
Validates that a string is of a certain length. |