1 | import { AsyncIterableX } from '../asynciterable';
|
2 | /**
|
3 | * Projects each element of a sequence to a potentially async iterable and flattens the
|
4 | * resulting sequences into one sequence.
|
5 | * @param {Iterable<T | Promise<T>> | AsyncIterable<T>} source Source sequence
|
6 | * @param {function:(value: T): Iterable<R | Promise<R>> | AsyncIterable<R>} selector A transform function to apply to each element.
|
7 | * @param {Object} [thisArg] An optional "this" binding for the selector function.
|
8 | * @returns {AsyncIterable<R>} An async iterable whose elements are the result of invoking the one-to-many
|
9 | * transform function on each element of the input sequence.
|
10 | */
|
11 | export declare function flatMapAsync<TSource, TResult>(source: Iterable<TSource | PromiseLike<TSource>> | AsyncIterable<TSource>, selector: (value: TSource) => Iterable<TResult | PromiseLike<TResult>> | AsyncIterable<TResult>, thisArg?: any): AsyncIterableX<TResult>;
|