UNPKG

491 BTypeScriptView Raw
1import { IterableX } from '../../iterable/iterablex';
2export declare function reduceProto<T, R = T>(this: IterableX<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R, seed?: never[]): R;
3export declare function reduceProto<T, R = T>(this: IterableX<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R, seed?: R): R;
4declare module '../../iterable/iterablex' {
5 interface IterableX<T> {
6 reduce: typeof reduceProto;
7 }
8}