Does typeScript support generator syntax and a Promise shim yet? What about generators? These are pretty much required to get to async/await goodness.
I ask because I am genuinely interested, and haven't looked into it for a while, only passively in the context of Angular 2. The addition of attributes (@ tagging) is specifically interesting to me as I think it's a cleaner syntax visually than mounting methods onto a function after declaration.
With BabelJS, I can use flow to get type annotations, but not sure about meta annotations (like attribute declarations in .net)
Comments
Does typeScript support generator syntax and a Promise shim yet? What about generators? These are pretty much required to get to async/await goodness.
I ask because I am genuinely interested, and haven't looked into it for a while, only passively in the context of Angular 2. The addition of attributes (@ tagging) is specifically interesting to me as I think it's a cleaner syntax visually than mounting methods onto a function after declaration.
With BabelJS, I can use flow to get type annotations, but not sure about meta annotations (like attribute declarations in .net)
Both async/await and generators are on the roadmap[0] for the next version.
[0] https://github.com/Microsoft/TypeScript/wiki/Roadmap