UNPKG

699 BTypeScriptView Raw
1import { AsyncIterableX } from './asynciterablex';
2export declare class OfAsyncIterable<TSource> extends AsyncIterableX<TSource> {
3 private _args;
4 constructor(args: TSource[]);
5 [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator<TSource, void, unknown>;
6}
7/**
8 * Creates an async-iterable from the specified elements.
9 *
10 * @export
11 * @template TSource The type of the elements to create an async-iterable sequence.
12 * @param {...TSource[]} args The elements to turn into an async-iterable sequence.
13 * @returns {AsyncIterableX<TSource>} The async-iterable sequence created from the elements.
14 */
15export declare function of<TSource>(...args: TSource[]): AsyncIterableX<TSource>;