GraphReFlyTS

API Reference

wireBridge()

Creates a wire bridge.

Import

import { wireBridge } from "@graphrefly/ts/adapters";

Signature

function wireBridge(
	graph: Graph,
	opts: WireBridgeOptions,
): WireBridgeBundle<TOutbound, TInbound>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsWireBridgeOptionsOptions that configure the helper.

Returns

The wire bridge result.

Example

import { wireBridge } from "@graphrefly/ts/adapters";

Source

packages/ts/src/adapters/bridge.ts