GraphReFlyTS

API Reference

workerDerived()

D148 backend-required graph helper. No public submit API is exposed; the backend starts work only after this helper installs the graph-local fence.

Import

import { workerDerived } from "@graphrefly/ts/graph";

Signature

function workerDerived(
	graph: Graph,
	deps: readonly Node<unknown>[],
	opts: WorkerDerivedOptions<TInput, TResult>,
): Node<TResult>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
depsreadonly Node<unknown>[]Declared dependency node or nodes.
optsWorkerDerivedOptions<TInput, TResult>Options that configure the helper.

Returns

A Node<TResult> value.

Example

import { workerDerived } from "@graphrefly/ts/graph";

Source

packages/ts/src/graph/worker.ts