We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad80ad commit a065331Copy full SHA for a065331
src/lib/es2015.generator.d.ts
@@ -1,4 +1,13 @@
1
-interface GeneratorFunction extends Function { }
+interface Generator extends Iterator<any> { }
2
+
3
+interface GeneratorFunction {
4
+ /**
5
+ * Creates a new Generator object.
6
+ * @param args A list of arguments the function accepts.
7
+ */
8
+ new (...args: any[]): Generator;
9
+ (...args: any[]): Generator;
10
+}
11
12
interface GeneratorFunctionConstructor {
13
/**
src/lib/es2015.symbol.wellknown.d.ts
@@ -137,7 +137,7 @@ interface Function {
137
[Symbol.hasInstance](value: any): boolean;
138
}
139
140
-interface GeneratorFunction extends Function {
141
readonly [Symbol.toStringTag]: "GeneratorFunction";
142
143
0 commit comments