ix
Version:
The Interactive Extensions for JavaScript
10 lines (9 loc) • 452 B
TypeScript
import { IterableX } from './iterablex.js';
/**
* Creates a new iterable using the specified function implementing the members of AsyncIterable
*
* @template T The type of the elements returned by the iterable sequence.
* @param {(() => Iterator<T>)} fn The function that creates the [Symbol.iterator]() method
* @returns {IterableX<T>} A new iterable instance.
*/
export declare function create<T>(getIterator: () => Iterator<T>): IterableX<T>;