complete error

This commit is contained in:
Ben Irvin 2023-06-28 14:21:52 +02:00
parent 1f3c24fc8b
commit 1c922b0ec3

View File

@ -220,12 +220,15 @@ engine.diagnostics.on('warning', diagnosticListener);
To emit your own diagnostics event: To emit your own diagnostics event:
```typescript ```typescript
const event: Diagnostic = { const event: ErrorDiagnostic = {
kind: 'error', kind: 'error',
details: { details: {
message: "Your error" message: "Your error"
createdAt: new Date(), createdAt: new Date(),
} },
name: "myError",
severity: 'fatal',
error: new Error("my error")
} }
``` ```