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

---
```ts
formatDiagnostic(diagnostic): string
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `diagnostic` | [`Diagnostic`](../interfaces/Diagnostic.md) |

## Returns

`string`
