@mermaid-editor-sdk/ui


@mermaid-editor-sdk/ui / EditorError

Interface: EditorError

Defined in: package/ui/src/runtime/types.ts:5

Structured failure reported by the editor through onError.

Properties

cause?

optional cause?: unknown

Defined in: package/ui/src/runtime/types.ts:11

Original error or rejection value, when available.


code

code: "parse" | "render" | "mutation" | "save" | "destroyed"

Defined in: package/ui/src/runtime/types.ts:7

Failure category reported by the editor.


message

message: string

Defined in: package/ui/src/runtime/types.ts:9

Human-readable error summary.