GraphReFlyTS

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

ParameterTypeDescription
prevDescribeSnapshotprev value used by the helper.
nextDescribeSnapshotnext 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