Skip to content

DiagnosticReport

Defined in: diagnostics/events.ts:80

A problem as it is reported, before aggregation gives it a count.

optional context?: Record<string, unknown>

Defined in: diagnostics/events.ts:88


optional error?: unknown

Defined in: diagnostics/events.ts:87

An Error, or anything thrown — the stack is taken from it when there is one. Strings and non-Errors are tolerated: throw 'nope' is legal JS and is exactly the kind of code that ships.


kind: DiagnosticKind

Defined in: diagnostics/events.ts:81


message: string

Defined in: diagnostics/events.ts:82


optional source?: string

Defined in: diagnostics/events.ts:83