UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

19 lines (18 loc) 584 B
import { ReadableStreamsChunks } from '@johngw/stream-common/Stream'; /** * Combines the source Observable with other Observables to create an Observable * whose values are calculated from the latest values of each, only when the source emits. * * @group Transformers * @example * ``` * --a-----b-------c---d---e-- * * withLatestFrom( * -----1----2-3-4------------ * ) * * --------b1------c4--d4--e4- * ``` */ export declare function withLatestFrom<T, RSs extends ReadableStream<unknown>[]>(...inputs: RSs): ReadableWritablePair<[T, ...ReadableStreamsChunks<RSs>], T>;