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

---
```ts
markDeprecated(
  program,
  type,
  details): void
```

Mark the given type as deprecated with the provided details.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `program` | [`Program`](Interface.Program.md) | Program |
| `type` | [`Type`](Type.Type.md) | Type |
| `details` | [`DeprecationDetails`](Interface.DeprecationDetails.md) | Details of the deprecation |

## Returns

`void`
