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