UNPKG

ix

Version:

The Interactive Extensions for JavaScript

9 lines (8 loc) 595 B
import { AsyncIterableX } from '../../asynciterable/asynciterablex'; export declare function reduceRightProto<T, R = T>(this: AsyncIterableX<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R | Promise<R>, seed?: never[]): Promise<R>; export declare function reduceRightProto<T, R = T>(this: AsyncIterableX<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R | Promise<R>, seed?: R): Promise<R>; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX<T> { reduceRight: typeof reduceRightProto; } }