How do I get the return type of a class method in TypeScript September 6, 2023 by Tarik To get property or method type, you can use indexed access type operator: type FooReturnType = ReturnType<MyClass['foo']>;