GraphReFlyTS

API Reference

toProcess()

Creates a to process.

Import

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

Signature

function toProcess(
	graph: Graph,
	source: Node<T>,
	commandOf: ProcessCommandOf<T>,
	opts: OutboundAdapterOptions = {},
): OutboundBundle<T, ProcessResult>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
sourceNode<T>Source node that provides graph-visible input.
commandOfProcessCommandOf<T>command of value used by the helper.
optsOutboundAdapterOptionsOptions that configure the helper.

Returns

The to process result.

Example

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

Source

packages/ts/src/adapters/environment-outbound.ts