combine()
combine (alias combineLatest): emit a tuple of every dep’s latest value whenever ANY dep
delivers, once ALL deps have delivered at least one value. partial:true; the all-delivered gate
is depLatest(ctx, i) !== undefined per dep. Completes when ALL deps complete (default
completeWhenDepsComplete); any dep ERROR propagates (default errorWhenDepsError). Emits a fresh
tuple per wave (D49 — no dedup; compose distinctUntilChanged to suppress unchanged tuples).
Import
Section titled “Import”import { combine } from "@graphrefly/ts/operators";Signature
Section titled “Signature”function combine(): Operator<unknown, T>Returns
Section titled “Returns”A Operator<unknown, T> value.
Example
Section titled “Example”import { combine } from "@graphrefly/ts/operators";Source
Section titled “Source”packages/ts/src/graph/combinators.ts