Skip to content

Vizel API / core/src / VizelMarkdownSyncResult

Interface: VizelMarkdownSyncResult

Defined in: packages/core/src/types.ts:351

Result of Markdown synchronization.

Each framework-specific composable/hook/rune returns a result that structurally satisfies this interface (with framework-idiomatic reactive wrappers for markdown and isPending). The flush method is included so all frameworks expose the same surface.

Properties

flush

ts
flush: () => void;

Defined in: packages/core/src/types.ts:362

Force any pending debounced markdown export to run immediately.

Returns

void


isPending

ts
isPending: boolean;

Defined in: packages/core/src/types.ts:360

Whether markdown export is currently pending (debounced)


markdown

ts
markdown: string;

Defined in: packages/core/src/types.ts:353

Current markdown content (reactive in framework wrappers)


setMarkdown

ts
setMarkdown: (markdown) => void;

Defined in: packages/core/src/types.ts:358

Set markdown content to the editor. Automatically transforms diagram code blocks if transformDiagrams is enabled.

Parameters

ParameterType
markdownstring

Returns

void

Released under the MIT License.