Current section

Files

Jump to
spellweaver priv bun node_modules @cspell cspell-pipe dist helpers toArray.d.ts
Raw

priv/bun/node_modules/@cspell/cspell-pipe/dist/helpers/toArray.d.ts

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