---
jsApi: true
title: "[F] getMaxItems"

---
```ts
getMaxItems(program, target): number | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) |
| `target` | [`Type`](../type-aliases/Type.md) |

## Returns

`number` \| `undefined`
