API Reference
topologyDiff()
Pure topology delta from one D39 describe() snapshot to another. No node refs, no clocks, no old-core deps (D56). Values/status changes are not topology events; use observe() for data.
Import
import { topologyDiff } from "@graphrefly/ts/composition";
Signature
function topologyDiff(
prev: DescribeSnapshot,
next: DescribeSnapshot,
): DescribeChangeset
Parameters
| Parameter | Type | Description |
|---|---|---|
prev | DescribeSnapshot | prev value used by the helper. |
next | DescribeSnapshot | next value used by the helper. |
Returns
A DescribeChangeset value for the boundary or adapter.
Example
import { topologyDiff } from "@graphrefly/ts/composition";
Source
packages/ts/src/graph/composition.ts