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