ReturnType extracts return type of a function.
ReturnType
Is there a way to define ArgumentsType that extracts parameter types of a
ArgumentsType
I created a collection of common helper types like this: https://github.com/joonhocho/tsdef
Here's you can find many helper patterns for typescript. you can install via npm or yarn as well. npm i -D tsdef
npm i -D tsdef