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

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

Get the documentation string for the return success types of an operation.

## Parameters

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

## Returns

`string` \| `undefined`

Documentation value
