Just read about TypeScript 3.6 Beta that comes with better support of generators, especially the result of a
yield
expression that was previously typedany
🤗
This is an experimentation of implementing monadic syntactic sugar—like the hs do notation—using generators.