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

---
```ts
getVisibility(program, target): string[] | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) |
| `target` | [`Type`](../type-aliases/Type.md) |

## Returns

`string`[] \| `undefined`
