get-iterator
Version:
Get the default iterator or async iterator for an iterable or async iterable
6 lines • 421 B
TypeScript
export declare function getIterator<T>(obj: AsyncIterable<T>): AsyncIterator<T>;
export declare function getIterator<T>(obj: AsyncIterator<T>): AsyncIterator<T>;
export declare function getIterator<T>(obj: Iterable<T>): Iterator<T>;
export declare function getIterator<T>(obj: Iterator<T>): Iterator<T>;
export declare function getIterator<T>(obj: any): AsyncIterator<T> | Iterator<T>;
//# sourceMappingURL=index.d.ts.map