Created
June 23, 2018 00:53
-
-
Save kennetpostigo/5594906f81af686bf47c385b1ff620f6 to your computer and use it in GitHub Desktop.
Reason Phantom Type Animal Strict dog and cat
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
module type Animal = { | |
/* ... */ | |
let mate: (t('a), t('a)) => string; | |
let interMate: (t(dog), t(cat)) => string; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment