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

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

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](Interface.Program.md) |
| `target` | [`Type`](Type.Type.md) |

## Returns

`number` \| `undefined`
