Function maxItems

Validates that an array has at most the specified number of items.

`@maxItems(10) selections: string[];`
  • Parameters

    • max: number

      Maximum number of items allowed

    Returns PropertyDecorator