Create a validator that checks if the string is no more than n characters long.
n
A validator that checks if the string is at most n characters long.
The maximum length of the string.
The error message to use if the string is too long.
Generated using TypeDoc
Create a validator that checks if the string is no more than
n
characters long.Returns
A validator that checks if the string is at most
n
characters long.