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
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
deps | readonly Node<unknown>[] | Declared dependency node or nodes. |
opts | WorkerDerivedOptions<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