Last active
September 16, 2018 23:30
-
-
Save dewey92/bcc2cf3a4c1e32bbbf31a1e3971ccf59 to your computer and use it in GitHub Desktop.
Phantom Type - 1
This file contains hidden or 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
| class Temp<A> { | |
| constructor(degree: number) { } | |
| } | |
| interface Celcius {} | |
| interface Fahrenheit {} | |
| declare function isBoiling(temp: Temp<Celcius>): boolean; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment