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

---
```ts
getDoc(program, target): string | undefined
```

Get the documentation string for the given type.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `program` | [`Program`](Interface.Program.md) | Program |
| `target` | [`Type`](Type.Type.md) | Type |

## Returns

`string` \| `undefined`

Documentation value
