I want to declare a function in TypeScript that returns the type of the current instance type, for example. in a free API that returns this .
Is there a type variable for this type? (I would prefer not to use the ugly Java method X<T extends X<T>> .)
source share