lix-website/themes/lix/assets/bootstrap/node_modules/gensequence/dist/ImplAsyncSequence.d.ts

9 lines
511 B
TypeScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
import { AsyncLazyIterable, AsyncSequence, ThenArg } from './types';
export declare class ImplAsyncSequence<T> implements AsyncSequence<T> {
private i;
constructor(i: AsyncLazyIterable<T>);
private get iter();
[Symbol.asyncIterator](): AsyncIterableIterator<T> | AsyncIterator<T, any, undefined>;
reduceAsync<U>(fnReduceAsync: (previousValue: ThenArg<U>, currentValue: ThenArg<T>, currentIndex: number) => ThenArg<U> | Promise<ThenArg<U>>, initialValue?: ThenArg<U>): Promise<ThenArg<U>>;
}