schema.constraints.maxlength.md

January 18, 2023 ยท View on GitHub

Home > @datashaper/schema > Constraints > maxLength

Constraints.maxLength property

For strings or arrays, this is the maximum allowed length of values.

Signature:

maxLength?: number;