Skip to content

Commit 7711a45

Browse files
committed
[Symbol.iterator] of a Generator is a Generator
1 parent a66cdf8 commit 7711a45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/es6.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,9 @@ declare var GeneratorFunction: GeneratorFunctionConstructor;
477477

478478
interface Generator<T> extends IterableIterator<T> {
479479
next(value?: any): IteratorResult<T>;
480-
throw (exception: any): IteratorResult<T>;
481-
return (value: T): IteratorResult<T>;
480+
throw(exception: any): IteratorResult<T>;
481+
return(value: T): IteratorResult<T>;
482+
[Symbol.iterator](): Generator<T>;
482483
[Symbol.toStringTag]: string;
483484
}
484485

0 commit comments

Comments
 (0)