Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / Diagnostic

Interface: Diagnostic

Defined in: src/diagnostics.ts:21

One diagnostic emitted by the library.

Properties

code

readonly code: DiagnosticCode

Defined in: src/diagnostics.ts:23

Stable condition identifier — see DiagnosticCode. Branch on this, not on the text.


detail?

readonly optional detail?: Readonly<Record<string, unknown>>

Defined in: src/diagnostics.ts:30

Structured context for the condition, when a site has any to give. No site populates it today; it exists so one can start to without a breaking signature change.


message

readonly message: string

Defined in: src/diagnostics.ts:25

Human-readable explanation. Free to change in any release; do not parse it.