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