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
Section titled “Import”import { topologyDiff } from "@graphrefly/ts/composition";Signature
Section titled “Signature”function topologyDiff( prev: DescribeSnapshot, next: DescribeSnapshot,): DescribeChangesetParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
prev | DescribeSnapshot | prev value used by the helper. |
next | DescribeSnapshot | next value used by the helper. |
Returns
Section titled “Returns”A DescribeChangeset value for the boundary or adapter.
Example
Section titled “Example”import { topologyDiff } from "@graphrefly/ts/composition";Source
Section titled “Source”packages/ts/src/graph/composition.ts