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

---
```ts
getServers(program, type): HttpServer[] | undefined
```

## Parameters

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

## Returns

[`HttpServer`](../interfaces/HttpServer.md)[] \| `undefined`
