ix
Version:
The Interactive Extensions for JavaScript
19 lines (18 loc) • 983 B
TypeScript
import { AsyncIterableX } from '../asynciterablex.js';
import { MonoTypeOperatorAsyncFunction } from '../../interfaces.js';
/** @ignore */
export declare class SkipAsyncIterable<TSource> extends AsyncIterableX<TSource> {
private _source;
private _count;
constructor(source: AsyncIterable<TSource>, count: number);
[Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator<Awaited<TSource>, void, unknown>;
}
/**
* Bypasses a specified number of elements in an async-iterable sequence and then returns the remaining elements.
*
* @template TSource The type of the elements in the source sequence.
* @param {number} count The number of elements to skip before returning the remaining elements.
* @returns {MonoTypeOperatorAsyncFunction<TSource>} An async-iterable sequence that contains the elements that
* occur after the specified index in the input sequence.
*/
export declare function skip<TSource>(count: number): MonoTypeOperatorAsyncFunction<TSource>;