1 | import type { PropertyKey } from "../index";
|
2 |
|
3 | declare function getIteratorMethod<T>(
|
4 | ES: {
|
5 | AdvanceStringIndex?(S: string, index: number, unicode: boolean): number;
|
6 | GetMethod(O: unknown, P: PropertyKey): ((...args: any) => any) | undefined;
|
7 | IsArray?(O: unknown): boolean;
|
8 | Type?(O: unknown): string | undefined;
|
9 | },
|
10 | iterable: T,
|
11 | ): T extends Iterable<any> ? () => Iterator<T extends Iterable<infer U> ? U : any, any, any> : undefined;
|
12 |
|
13 | export = getIteratorMethod;
|