UNPKG

342 BTypeScriptView Raw
1/**
2 * @param obj The iterable
3 * @param method The method to use to get the `Iterator`
4 */
5declare function GetIterator<I extends Iterator<unknown, unknown, unknown>>(obj: { [Symbol.iterator](): I }): I;
6declare function GetIterator<O, I extends Iterator<unknown, unknown, unknown>>(obj: O, method: (this: O) => I): I;
7export = GetIterator;