UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 901 B
{"version":3,"sources":["add/asynciterable-operators/tomap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAgB,MAAM,2BAA2B,CAAC;AAEhE,MAAM,CAAC,KAAK,UAAU,UAAU,CAE9B,OAAwC;IAExC,OAAO,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9B,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC","file":"tomap.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { toMap, ToMapOptions } from '../../asynciterable/tomap';\n\nexport async function toMapProto<TSource, TKey, TElement = TSource>(\n this: AsyncIterable<TSource>,\n options: ToMapOptions<TSource, TElement>\n): Promise<Map<TKey, TElement | TSource>> {\n return toMap(this, options);\n}\n\nAsyncIterableX.prototype.toMap = toMapProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n toMap: typeof toMapProto;\n }\n}\n"]}