UNPKG

460 BTypeScriptView Raw
1import { IterableX } from './iterablex';
2/**
3 * Creates a new iterable using the specified function implementing the members of AsyncIterable
4 *
5 * @export
6 * @template T The type of the elements returned by the iterable sequence.
7 * @param {(() => Iterator<T>)} fn The function that creates the [Symbol.iterator]() method
8 * @returns {IterableX<T>} A new iterable instance.
9 */
10export declare function create<T>(getIterator: () => Iterator<T>): IterableX<T>;