Get the Return Type of a Function in Typescript Using ReturnType
Too Long; Didn't Read
The ReturnType utility type is very useful in situations where the output of a specific function needs to be taken in by another function. In that scenario, you might create a new, custom type, that the output of a function constrains itself to.