How to add a string type to function return value in TypeScript?
Originally Published Here ๐!
To add string type to function return value first, declare the function, then add a : symbol (colon) after the parameters opening and closing brackets () and then type the word string to indicate that the function's retu...
melvingeorge-me.hashnode.dev2 min read