UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

20 lines 694 B
import type { ReadableStreamsChunks } from '@johngw/stream-common/Stream'; import type { ReadableWritablePair } from 'node:stream/web'; /** * 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>; //# sourceMappingURL=withLatestFrom.d.ts.map