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

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

## Parameters

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

## Returns

`ReadonlyMap`<[`ExtensionKey`](../type-aliases/ExtensionKey.md), `any`\>
