Skip to content

Instantly share code, notes, and snippets.

@eyeccc
Created June 13, 2019 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyeccc/ed4950e6f24b1d3b76346af391010265 to your computer and use it in GitHub Desktop.
Save eyeccc/ed4950e6f24b1d3b76346af391010265 to your computer and use it in GitHub Desktop.
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