Last active
October 6, 2018 18:31
-
-
Save dewey92/030ad3ac09830d4a40a6fb080c641dfd to your computer and use it in GitHub Desktop.
Branding
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
| type Brand<Name, Type> = Type & { _brand: Name }; | |
| type Celcius = Brand<'Celcius', number>; | |
| type Fahrenheit = Brand<'Fahrenheit', number>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment