How to convert a string literal type into an uppercase format in TypeScript?
Originally Published Here ๐!
To convert a string literal type into an uppercase format, you can use the built-in Uppercase type that comes with TypeScript.
TL;DR
// lowercase string literal type
type Greeting = "hello";
// convert string literal ty...
melvingeorge-me.hashnode.dev1 min read