UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

4 lines (3 loc) 229 B
/** Accumulate all entries of an AsyncGenerator into an array */ export declare function accumulate<T>(gen: AsyncGenerator<T>): Promise<Array<T>>; export declare function toGenerator<T>(iterable: Iterable<T>): AsyncGenerator<T>;