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

---
```ts
getVersion(program, namespace): VersionMap | undefined
```

Get the version map of the namespace.

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `namespace` | `Namespace` |

## Returns

[`VersionMap`](../classes/VersionMap.md) \| `undefined`
