Which return type to use when there is nothing to return in a function in TypeScript?
Originally Published Here ๐!
When there is nothing to return in a function, you can use the : symbol (colon) followed by the keyword void after the parameters brackets of a function in TypeScript.
TL;DR
// logs string to the console
// The void keyw...
melvingeorge-me.hashnode.dev1 min read