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

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

## Type parameters

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

## Parameters

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

## Returns

`T`
