UNPKG

axax

Version:

A library of async iterator extensions for JavaScript including ```map```, ```reduce```, ```filter```, ```flatMap```, ```pipe``` and [more](https://github.com/jamiemccrindle/axax/blob/master/docs/API.md#functions).

8 lines (7 loc) 321 B
/** * Pipes an async iterator through a list of functions that take an async iterator * as an argument. * * @param funcs a series of functions that operate on AsyncIterables */ export declare function pipe<T>(...funcs: Array<(iterable: AsyncIterable<any>) => any>): (source: AsyncIterable<any>) => AsyncIterable<T>;