Skip to content
PACKAGES

describeToPretty()

Render a D39 describe snapshot as compact human-readable plaintext.

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

A string value.

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

packages/ts/src/graph/render.ts