UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 941 B
{"version":3,"sources":["add/iterable-operators/sum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAKzC,MAAM,UAAU,QAAQ,CAAuB,OAA0B;IACvE,OAAO,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5B,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,QAAQ,CAAC","file":"sum.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { sum } from '../../iterable/sum';\nimport { MathOptions } from '../../iterable/mathoptions';\n\nexport function sumProto(this: IterableX<number>, options?: MathOptions<number>): number;\nexport function sumProto<T>(this: IterableX<T>, options?: MathOptions<T>): number;\nexport function sumProto(this: IterableX<any>, options?: MathOptions<any>): number {\n return sum(this, options);\n}\n\nIterableX.prototype.sum = sumProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n sum: typeof sumProto;\n }\n}\n"]}