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
Section titled “Import”import { workerDerived } from "@graphrefly/ts/graph";Signature
Section titled “Signature”function workerDerived( graph: Graph, deps: readonly Node<unknown>[], opts: WorkerDerivedOptions<TInput, TResult>,): Node<TResult>Parameters
Section titled “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
Section titled “Returns”A Node<TResult> value.
Example
Section titled “Example”import { workerDerived } from "@graphrefly/ts/graph";Source
Section titled “Source”packages/ts/src/graph/worker.ts