UNPKG

ix

Version:

The Interactive Extensions for JavaScript

16 lines (15 loc) 697 B
import { AsyncIterableX } from '../asynciterablex.js'; import { MonoTypeOperatorAsyncFunction } from '../../interfaces.js'; /** @ignore */ export declare class ReverseAsyncIterable<TSource> extends AsyncIterableX<TSource> { private _source; constructor(source: AsyncIterable<TSource>); [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator<Awaited<TSource>, void, undefined>; } /** * Reverses the async-iterable instance. * * @template TSource The type of the elements in the source sequence. * @returns {MonoTypeOperatorAsyncFunction<TSource>} The async-iterable in reversed sequence. */ export declare function reverse<TSource>(): MonoTypeOperatorAsyncFunction<TSource>;