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

---
```ts
resolveVersions(program, rootNs): VersionResolution[]
```

Resolve the version to use for all namespace for each of the root namespace versions.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `program` | `Program` |  |
| `rootNs` | `Namespace` | Root namespace. |

## Returns

[`VersionResolution`](../interfaces/VersionResolution.md)[]
