diff --git a/lib/lib.es2015.generator.d.ts b/lib/lib.es2015.generator.d.ts
index df6a987eb77bd..653e74d2520cc 100644
--- a/lib/lib.es2015.generator.d.ts
+++ b/lib/lib.es2015.generator.d.ts
@@ -18,19 +18,19 @@ and limitations under the License.
///
-interface Generator extends Iterator { }
+interface Generator extends IterableIterator { }
-interface GeneratorFunction {
+interface GeneratorFunction {
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
- new (...args: any[]): Generator;
+ new (...args: any[]): Generator;
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
- (...args: any[]): Generator;
+ (...args: any[]): Generator;
/**
* The length of the arguments.
*/
@@ -42,20 +42,20 @@ interface GeneratorFunction {
/**
* A reference to the prototype.
*/
- readonly prototype: Generator;
+ readonly prototype: Generator;
}
-interface GeneratorFunctionConstructor {
+interface GeneratorFunctionConstructor {
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
- new (...args: string[]): GeneratorFunction;
+ new (...args: string[]): GeneratorFunction;
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
- (...args: string[]): GeneratorFunction;
+ (...args: string[]): GeneratorFunction;
/**
* The length of the arguments.
*/
@@ -67,5 +67,5 @@ interface GeneratorFunctionConstructor {
/**
* A reference to the prototype.
*/
- readonly prototype: GeneratorFunction;
+ readonly prototype: GeneratorFunction;
}
diff --git a/lib/lib.es2015.symbol.wellknown.d.ts b/lib/lib.es2015.symbol.wellknown.d.ts
index 400f70a7f4d7c..89d1ee5e9a9fa 100644
--- a/lib/lib.es2015.symbol.wellknown.d.ts
+++ b/lib/lib.es2015.symbol.wellknown.d.ts
@@ -157,7 +157,7 @@ interface Function {
[Symbol.hasInstance](value: any): boolean;
}
-interface GeneratorFunction {
+interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
@@ -315,4 +315,4 @@ interface SetConstructor {
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
-}
\ No newline at end of file
+}
diff --git a/src/lib/es2015.generator.d.ts b/src/lib/es2015.generator.d.ts
index 92bb8dca8685a..49a93a3a307e8 100644
--- a/src/lib/es2015.generator.d.ts
+++ b/src/lib/es2015.generator.d.ts
@@ -1,16 +1,16 @@
-interface Generator extends Iterator { }
+interface Generator extends IterableIterator { }
-interface GeneratorFunction {
+interface GeneratorFunction {
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
- new (...args: any[]): Generator;
+ new (...args: any[]): Generator;
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
- (...args: any[]): Generator;
+ (...args: any[]): Generator;
/**
* The length of the arguments.
*/
@@ -22,20 +22,20 @@ interface GeneratorFunction {
/**
* A reference to the prototype.
*/
- readonly prototype: Generator;
+ readonly prototype: Generator;
}
-interface GeneratorFunctionConstructor {
+interface GeneratorFunctionConstructor {
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
- new (...args: string[]): GeneratorFunction;
+ new (...args: string[]): GeneratorFunction;
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
- (...args: string[]): GeneratorFunction;
+ (...args: string[]): GeneratorFunction;
/**
* The length of the arguments.
*/
@@ -47,5 +47,5 @@ interface GeneratorFunctionConstructor {
/**
* A reference to the prototype.
*/
- readonly prototype: GeneratorFunction;
+ readonly prototype: GeneratorFunction;
}
diff --git a/src/lib/es2015.symbol.wellknown.d.ts b/src/lib/es2015.symbol.wellknown.d.ts
index efaef1a63cef4..d7dd7a2b51895 100644
--- a/src/lib/es2015.symbol.wellknown.d.ts
+++ b/src/lib/es2015.symbol.wellknown.d.ts
@@ -137,7 +137,7 @@ interface Function {
[Symbol.hasInstance](value: any): boolean;
}
-interface GeneratorFunction {
+interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
@@ -295,4 +295,4 @@ interface SetConstructor {
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
-}
\ No newline at end of file
+}