lazzy.ts
Version:
Fast and lightweight library for lazy operations with iterable objects.
4 lines • 508 B
TypeScript
import { Depth, FlatArray } from "../common/helpers";
export declare function flatMap<T, R, N, V, D extends Depth = 20>(iterator: Iterator<T, R, N>, transformer: (currentValue: T, index: number) => V, depth?: D): Generator<FlatArray<V, D>, R, undefined>;
export declare function flatMapAsync<T, R, N, V, D extends Depth = 20>(iterator: AsyncIterator<T, R, N>, transformer: (currentValue: T, index: number) => V, depth?: D): AsyncGenerator<FlatArray<V, D>, R, undefined>;
//# sourceMappingURL=flatMap.d.ts.map