---
jsApi: true
title: "[F] $maxItems"

---
```ts
$maxItems(
   context, 
   target, 
   maxItems): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | [`DecoratorContext`](../interfaces/DecoratorContext.md) |
| `target` | [`Model`](../interfaces/Model.md) \| [`ModelProperty`](../interfaces/ModelProperty.md) |
| `maxItems` | `number` |

## Returns

`void`
