Is it possible to define method outside the class in typescript

But why use the class connector? That is explicitly increasing the coupling between components. Why not directly call the external functions in the class methods, passing in the data required by the function signature?

In composition, your objects implement interfaces. The interfaces should clearly describe what they require and what they do. The interface should not mandate internal data representation in your objects. That violates encapsulation.