describeToPretty()
Render a D39 describe snapshot as compact human-readable plaintext.
Import
Section titled “Import”import { describeToPretty } from "@graphrefly/ts/graph";Signature
Section titled “Signature”function describeToPretty( snapshot: DescribeSnapshot, opts: DescribeToPrettyOptions = {},): stringParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
snapshot | DescribeSnapshot | snapshot value used by the helper. |
opts | DescribeToPrettyOptions | Options that configure the helper. |
Returns
Section titled “Returns”A string value.
Example
Section titled “Example”import { describeToPretty } from "@graphrefly/ts/graph";Source
Section titled “Source”packages/ts/src/graph/render.ts