UNPKG

595 BTypeScriptView Raw
1import { AsyncIterableX } from '../../asynciterable/asynciterablex';
2export declare function reduceRightProto<T, R = T>(this: AsyncIterableX<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R | Promise<R>, seed?: never[]): Promise<R>;
3export declare function reduceRightProto<T, R = T>(this: AsyncIterableX<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R | Promise<R>, seed?: R): Promise<R>;
4declare module '../../asynciterable/asynciterablex' {
5 interface AsyncIterableX<T> {
6 reduceRight: typeof reduceRightProto;
7 }
8}