To get property or method type, you can use indexed access type operator:
type FooReturnType = ReturnType<MyClass['foo']>;
To get property or method type, you can use indexed access type operator:
type FooReturnType = ReturnType<MyClass['foo']>;