UNPKG

347 BTypeScriptView Raw
1import { IterableX } from '../../iterable/iterablex';
2export declare function sumProto(this: IterableX<number>, fn?: (x: number) => number): number;
3export declare function sumProto<T>(this: IterableX<T>, fn: (x: T) => number): number;
4declare module '../../iterable/iterablex' {
5 interface IterableX<T> {
6 sum: typeof sumProto;
7 }
8}