---
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`](Interface.Program.md) | Program |
| `type` | [`Type`](Type.Type.md) | Type |

## Returns

`string` \| `undefined`
