Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

ensurePorts

Source

Walk the graph and ensure every link endpoint references an existing `NodePort`. Idempotent — graphs that already comply pass through unchanged (modulo deep-copy).

ensurePorts(graph: NetworkGraph): NetworkGraph

Parameters

Parameter Type Description Default
graph NetworkGraph No additional description.

Returns

NetworkGraph

libs/@shumoku/core/src/models/migrate.ts:87