UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 1.05 kB
{"version":3,"sources":["add/iterable-operators/share.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAOvD;;GAEG;AACH,MAAM,UAAU,UAAU,CAExB,EAAwC;IAExC,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC","file":"share.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { share } from '../../iterable/operators/share';\n\nexport function shareProto<TSource>(this: IterableX<TSource>): IterableX<TSource>;\nexport function shareProto<TSource, TResult>(\n this: IterableX<TSource>,\n fn?: (value: Iterable<TSource>) => Iterable<TResult>\n): IterableX<TResult>;\n/**\n * @ignore\n */\nexport function shareProto<T, R>(\n this: IterableX<T>,\n fn?: (value: Iterable<T>) => Iterable<R>\n): IterableX<T | R> {\n return share(fn)(this);\n}\n\nIterableX.prototype.share = shareProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n share: typeof shareProto;\n }\n}\n"]}