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

---
```ts
getDeprecated(program, type): string | undefined
```

Return the deprecated message or undefined if not deprecated

## Parameters

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

## Returns

`string` \| `undefined`
