Created
June 13, 2019 02:32
-
-
Save eyeccc/ed4950e6f24b1d3b76346af391010265 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 logEmail = (email: Email) => console.log(email); | |
logEmail("123"); | |
/* | |
^^^^^^^^^^^^^^^ | |
Argument of type '"123"' is not assignable to parameter of type 'string & { readonly Email: unique symbol; }'. | |
Type '"123"' is not assignable to type '{ readonly Email: unique symbol; }'. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment