Skip to content
PACKAGES

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 { topologyDiff } from "@graphrefly/ts/composition";
function topologyDiff(
prev: DescribeSnapshot,
next: DescribeSnapshot,
): DescribeChangeset
ParameterTypeDescription
prevDescribeSnapshotprev value used by the helper.
nextDescribeSnapshotnext value used by the helper.

A DescribeChangeset value for the boundary or adapter.

import { topologyDiff } from "@graphrefly/ts/composition";

packages/ts/src/graph/composition.ts