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

---
```ts
createDiagnosticCollector(): DiagnosticCollector
```

Create a new instance of the

## Returns

[`DiagnosticCollector`](../interfaces/DiagnosticCollector.md)

## See

DiagnosticCollector.
