How to easily make a type from a function's return value in TypeScript?
Originally Published Here ๐!
To easily make a type from the function's return value in TypeScript, you can use the ReturnType utility type and pass the function type declaration which you need to get the type of return value from as the first type a...
melvingeorge-me.hashnode.dev2 min read