Skip to content

ExternalDiagramDefinition

Unofficial

Definition for registering an external Mermaid diagram type.

Import:

import type { ExternalDiagramDefinition } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ExternalDiagramDefinition

Properties

PropertyTypeDescription
idstringUnique identifier for the diagram type.

Methods

MethodReturnsDescription
detector(text)booleanDetect whether the given text matches this diagram type.
loader()Promise<DiagramDefinitionModule>Lazily load the diagram definition.