[T] MaxContainsDecorator
type MaxContainsDecorator: (context, target, value) => void;Specify that the array must contain at most some number of the types provided by the contains decorator.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | DecoratorContext | - |
target | Type | ModelProperty | - |
value | number | The maximum number of instances the array must contain |
Returns
void