lix-website/themes/lix/assets/bootstrap/node_modules/gensequence/dist/ImplAsyncSequence.d.ts
2024-04-26 22:49:34 -06:00

9 lines
511 B
TypeScript

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>>;
}