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

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

## Parameters

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

## Returns

`number` \| `undefined`
