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

---
```ts
getVersions(p, t): [Namespace, VersionMap] | []
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `p` | `Program` |
| `t` | `Type` |

## Returns

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