class AnotherClass<U extends number> {
protected anotherMethod(): void {
}
protected anotherOtherMethod(): ReturnType<this["anotherMethod"]> {
// Private or protected member 'anotherMethod' cannot be accessed on a type parameter.ts(4105)
}
}
Is it possible to retrieve the type of a protected class member within the class itself?