Last active
November 20, 2020 11:41
-
-
Save kasperpeulen/b966178b32d240a70867ed11e7a28b2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const promise: Promise<A>; | |
const a = await promise; | |
// a of type A | |
const monad: Monad<B>; | |
const b = yield monad; | |
// b is of type B, but not automatically inferred |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment