class SomeClass<T extends string> {
protected someMethod(): void {
}
protected someOtherMethod(): ReturnType<this["someMethod"]> {
// Private or protected member 'someMethod' cannot be accessed on a type parameter.ts(4105)
}
}
Is there any way to reference back the type of protected class member in the class itself?