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

---
```ts
finishTypeForProgram<T>(program, typeDef): T
```

## Type parameters

| Parameter |
| :------ |
| `T` extends [`Type`](../type-aliases/Type.md) |

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) |
| `typeDef` | `T` |

## Returns

`T`
