ix
Version:
The Interactive Extensions for JavaScript
23 lines (19 loc) • 613 B
text/typescript
import { AsyncIterableX } from '../../asynciterable/asynciterablex.js';
import { concatMap } from '../../asynciterable/operators/concatmap.js';
import { FlattenConcurrentSelector } from '../../asynciterable/operators/_flatten.js';
/**
* @ignore
*/
export function concatMapProto<T, R>(
this: AsyncIterableX<T>,
selector: FlattenConcurrentSelector<T, R>,
thisArg?: any
) {
return concatMap(selector, thisArg)(this);
}
AsyncIterableX.prototype.concatMap = concatMapProto;
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
concatMap: typeof concatMapProto;
}
}