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