Skip to content
PACKAGES

describeToJson()

Render a D39 describe snapshot as deterministic JSON text.

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

A string value.

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

packages/ts/src/graph/render.ts