Skip to content
PACKAGES

describeToMermaid()

Render a D39 describe snapshot as Mermaid flowchart text.

import { describeToMermaid } from "@graphrefly/ts/graph";
function describeToMermaid(
snapshot: DescribeSnapshot,
opts: DescribeToMermaidOptions = {},
): string
ParameterTypeDescription
snapshotDescribeSnapshotsnapshot value used by the helper.
optsDescribeToMermaidOptionsOptions that configure the helper.

A string value.

import { describeToMermaid } from "@graphrefly/ts/graph";

packages/ts/src/graph/render.ts