ix
Version: 
The Interactive Extensions for JavaScript
1 lines • 1.31 kB
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/partition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAgB1D,MAAM,UAAU,cAAc,CAE5B,SAAkE,EAClE,OAAa;IAEb,OAAO,SAAS,CAAI,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,SAAS,GAAG,cAAc,CAAC","file":"partition.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { partition } from '../../asynciterable/partition';\n\n/**\n * @ignore\n */\n\nexport function partitionProto<T, S extends T>(\n  this: AsyncIterableX<T>,\n  predicate: (value: T, index: number) => value is S,\n  thisArg?: any\n): AsyncIterableX<S>[];\nexport function partitionProto<T>(\n  this: AsyncIterableX<T>,\n  predicate: (value: T, index: number) => boolean | Promise<boolean>,\n  thisArg?: any\n): AsyncIterableX<T>[];\nexport function partitionProto<T>(\n  this: AsyncIterableX<T>,\n  predicate: (value: T, index: number) => boolean | Promise<boolean>,\n  thisArg?: any\n): AsyncIterableX<T>[] {\n  return partition<T>(this, predicate, thisArg);\n}\n\nAsyncIterableX.prototype.partition = partitionProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n  interface AsyncIterableX<T> {\n    partition: typeof partitionProto;\n  }\n}\n"]}