diff --git a/docs/docs/docs/01-core/data-transfer/01-engine.md b/docs/docs/docs/01-core/data-transfer/01-engine.md index 73ea74ef41..4901070b9e 100644 --- a/docs/docs/docs/01-core/data-transfer/01-engine.md +++ b/docs/docs/docs/01-core/data-transfer/01-engine.md @@ -220,12 +220,15 @@ engine.diagnostics.on('warning', diagnosticListener); To emit your own diagnostics event: ```typescript -const event: Diagnostic = { +const event: ErrorDiagnostic = { kind: 'error', details: { message: "Your error" createdAt: new Date(), - } + }, + name: "myError", + severity: 'fatal', + error: new Error("my error") } ```