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

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

## Parameters

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

## Returns

`void`
