[T] MinContainsDecorator
type MinContainsDecorator = (context, target, value) => DecoratorValidatorCallbacks | void;Used in conjunction with the @contains decorator,
specifies that the array must contain at least a certain number of the types provided by the @contains decorator.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | DecoratorContext | - |
target | Type | ModelProperty | - |
value | number | The minimum number of instances the array must contain |
Returns
Section titled “Returns”DecoratorValidatorCallbacks | void