Created
January 22, 2019 20:15
-
-
Save danvk/834c87c8a9ef81bca099928d81509ddd 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 order = { | |
what: 'Macbook Air' as Product, // or "as 'MacbookAir'" | |
how: 'bitcoin' | |
}; | |
purchase(order.what); // ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment