Getting the return type of a function which uses generics
I might as well put this in an answer although it doesn’t look like it will meet your needs. TypeScript currently has neither generic values, higher kinded types, nor typeof on arbitrary expressions. Generics in TypeScript are sort of “shallow” that way. So as far as I know there’s unfortunately no way to describe a … Read more