Last active
April 11, 2021 08:30
-
-
Save metamn/2560fd76151c5d6571fa0844294f83d2 to your computer and use it in GitHub Desktop.
TypeScript
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
/** | |
* TypeScript, after all, helps only during development time. | |
* Runtime we've left with plain old JavaScript. | |
/ | |
export const borderVariants = ["default", "smooth", "edoMenu"]; // This data is available later | |
export type TBorderVariants = typeof borderVariants[number]; // This data is lost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment