@cspell/cspell-pipe
Version:
Library to make working with Iterators/AsyncIterators easier.
7 lines • 985 B
TypeScript
export declare function opReduceAsync<T>(reduceFn: (previousValue: T, currentValue: T) => T): (iter: AsyncIterable<T> | Iterable<T>) => AsyncIterable<T>;
export declare function opReduceAsync<T>(reduceFn: (previousValue: T, currentValue: T) => T, initialValue: T | Promise<T>): (iter: AsyncIterable<T> | Iterable<T>) => AsyncIterable<T>;
export declare function opReduceAsync<T, U>(reduceFn: (previousValue: U, currentValue: T) => U, initialValue: U | Promise<U>): (iter: AsyncIterable<T> | Iterable<T>) => AsyncIterable<U>;
export declare function opReduceSync<T>(reduceFn: (previousValue: T, currentValue: T) => T): (iter: Iterable<T>) => Iterable<T>;
export declare function opReduceSync<T>(reduceFn: (previousValue: T, currentValue: T) => T, initialValue: T): (iter: Iterable<T>) => Iterable<T>;
export declare function opReduceSync<T, U>(reduceFn: (previousValue: U, currentValue: T) => U, initialValue: U): (iter: Iterable<T>) => Iterable<U>;
//# sourceMappingURL=reduce.d.ts.map