@cspell/cspell-pipe
Version:
Library to make working with Iterators/AsyncIterators easier.
6 lines • 426 B
TypeScript
export declare function toArray<T>(i: AsyncIterable<T>): Promise<Awaited<T>[]>;
export declare function toArray<T>(i: Iterable<T>): T[];
export declare function toArray<T>(i: Iterable<T> | AsyncIterable<T>): T[] | Promise<Awaited<T>[]>;
export declare function toArraySync<T>(iter: Iterable<T>): T[];
export declare function toArrayAsync<T>(iter: AsyncIterable<T>): Promise<Awaited<T>[]>;
//# sourceMappingURL=toArray.d.ts.map