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

---
```ts
isDeprecated(program, type): boolean
```

Check if the given type is deprecated

## Parameters

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

## Returns

`boolean`
