@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 930 B
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/single.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGpD;;GAEG;AACH,MAAM,UAAU,WAAW,CAEzB,OAAgC;IAEhC,OAAO,MAAM,CAAC,IAAI,EAAE,OAAc,CAAC,CAAC;AACtC,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,MAAM,GAAG,WAAW,CAAC","file":"single.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { single } from '../../asynciterable/single';\nimport { OptionalFindOptions } from '../../asynciterable/findoptions';\n\n/**\n * @ignore\n */\nexport function singleProto<T>(\n this: AsyncIterable<T>,\n options?: OptionalFindOptions<T>\n): Promise<T | undefined> {\n return single(this, options as any);\n}\n\nAsyncIterableX.prototype.single = singleProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n single: typeof singleProto;\n }\n}\n"]}