UNPKG

408 BTypeScriptView Raw
1import { $$asyncIterator } from 'iterall';
2declare type AsyncIterator<T> = {
3 next(value?: any): Promise<IteratorResult<T>>;
4 return(): any;
5 throw(error: any): any;
6 [$$asyncIterator]: any;
7};
8export declare const createAsyncIterator: <T = any>(lazyFactory: Promise<AsyncIterator<T>>, filterFn: Function) => Promise<AsyncIterator<T>>;
9export {};
10//# sourceMappingURL=async-iterator.util.d.ts.map
\No newline at end of file