UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 796 B
{"version":3,"sources":["add/asynciterable-operators/toarray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,OAAO,GAAG,YAAY,CAAC","file":"toarray.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { toArray } from '../../asynciterable/toarray';\n\n/**\n * @ignore\n */\nexport function toArrayProto<TSource>(this: AsyncIterableX<TSource>): Promise<TSource[]> {\n return toArray(this);\n}\n\nAsyncIterableX.prototype.toArray = toArrayProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n toArray: typeof toArrayProto;\n }\n}\n"]}