GraphReFlyTS

API Reference

describeToPretty()

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

Import

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

Signature

function describeToPretty(
	snapshot: DescribeSnapshot,
	opts: DescribeToPrettyOptions = {},
): string

Parameters

ParameterTypeDescription
snapshotDescribeSnapshotsnapshot value used by the helper.
optsDescribeToPrettyOptionsOptions that configure the helper.

Returns

A string value.

Example

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

Source

packages/ts/src/graph/render.ts