UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

17 lines 461 B
import type { Predicate } from '@johngw/stream-common/Function'; /** * Prevents chunks from travelling down the stream * until the predicate returns true. * * @group Transformers * @example * ``` * --0--1--2--3--4--5--6--1--2--3--4-- * * after(x => x > 4) * * -----------------5--6--1--2--3--4-- * ``` */ export declare function after<T>(predicate: Predicate<T>): import("node:stream/web").TransformStream<T, T>; //# sourceMappingURL=after.d.ts.map