Skip to content
PACKAGES

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 { workerDerived } from "@graphrefly/ts/graph";
function workerDerived(
graph: Graph,
deps: readonly Node<unknown>[],
opts: WorkerDerivedOptions<TInput, TResult>,
): Node<TResult>
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.

A Node<TResult> value.

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

packages/ts/src/graph/worker.ts