Created
October 31, 2021 20:30
-
-
Save przemyslawjanpietrzak/f71c2c6eabf36ed41660ca493c4d6f18 to your computer and use it in GitHub Desktop.
literal-types-vuex
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
type Color = "red" | "blue"; | |
type Quantity = "one" | "two"; | |
type SeussFish = `${Quantity | Color} fish`; | |
// same as | |
// type SeussFish = "one fish" | "two fish" | |
// | "red fish" | "blue fish"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment