Skip to content

Commit

Permalink
[Symbol.iterator] of a Generator is a Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
JsonFreeman committed Feb 23, 2015
1 parent a66cdf8 commit 7711a45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/es6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,9 @@ declare var GeneratorFunction: GeneratorFunctionConstructor;

interface Generator<T> extends IterableIterator<T> {
next(value?: any): IteratorResult<T>;
throw (exception: any): IteratorResult<T>;
return (value: T): IteratorResult<T>;
throw(exception: any): IteratorResult<T>;
return(value: T): IteratorResult<T>;
[Symbol.iterator](): Generator<T>;
[Symbol.toStringTag]: string;
}

Expand Down

0 comments on commit 7711a45

Please sign in to comment.