/do-syntax-ts

Monadic syntactic sugar in TS

Primary LanguageTypeScript

Monadic syntactic sugar

Just read about TypeScript 3.6 Beta that comes with better support of generators, especially the result of a yield expression that was previously typed any 🤗

This is an experimentation of implementing monadic syntactic sugar—like the hs do notation—using generators.