TypeScript-Handbook icon indicating copy to clipboard operation
TypeScript-Handbook copied to clipboard

Iterators & Generators Handbook Topic Doesn't Cover Generators

Open mhegazy opened this issue 7 years ago • 3 comments

Courtesy of @bterlson

http://www.typescriptlang.org/docs/handbook/iterators-and-generators.html

This section doesn't mention generators at all. Should the section be renamed? Should the content expand to say something about generators? I'd say the latter.

mhegazy avatar Apr 13 '17 16:04 mhegazy

we should also mention async generators as well as async iteration and the new --downlevelIteration

mhegazy avatar Apr 13 '17 16:04 mhegazy

Worse than that - it would appear generators are not supported as they are not mentioned - despite being in the title!

Further confusion caused by http://kangax.github.io/compat-table/es6/#test-generators not having a column for TypeScript itself. The one it has for TS 1.8 says generators are not supported.

SteveALee avatar May 09 '17 14:05 SteveALee

These are important language features - and it would be good to document any compatibility issues in the transpilation.

sylvanaar avatar Dec 22 '17 16:12 sylvanaar