ix
Version:
The Interactive Extensions for JavaScript
1 lines • 858 B
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD;;GAEG;AACH,MAAM,UAAU,UAAU,CAExB,QAAmD;IAEnD,OAAO,KAAK,CAAI,IAAI,EAAE,QAAQ,CAAC,CAAC;AAClC,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC","file":"count.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { count } from '../../asynciterable/count';\n\n/**\n * @ignore\n */\nexport function countProto<T>(\n this: AsyncIterableX<T>,\n selector?: (value: T) => boolean | Promise<boolean>\n): Promise<number> {\n return count<T>(this, selector);\n}\n\nAsyncIterableX.prototype.count = countProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n count: typeof countProto;\n }\n}\n"]}