Home > @websublime/schema > StringSchemaType > maxLength
StringSchemaType.maxLength() method
Test if string is less then maximum length
Signature:
maxLength(maxLength: number, errorMessage?: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
maxLength | number | Maximum length |
errorMessage | string | Error message |
Returns:
this