How to make object properties string type values to string literal type in TypeScript?
Originally Published Here ๐!
To make the object properties string type values to string literals, we can use the as keyword after the property string value and then type out the string literal or we can use the as keyword after accessing the propert...
melvingeorge-me.hashnode.dev3 min read