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