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

---
```ts
getExtensions(program, entity): ReadonlyMap< ExtensionKey, any >
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `entity` | `Type` |

## Returns

`ReadonlyMap`< [`ExtensionKey`](Type.ExtensionKey.md), `any` \>
