I have come across a typescript project that I inherited and I am interested in enhancing some of the interfaces with additional functionality, like implementing a ToString()
method on an address model. However, the issue is that these interfaces are automatically generated using TypeLite from our API. This means any methods added to the interfaces will be deleted when TypeLite is run again.
My question is whether it is possible to extend an interface in a separate file just like how we can create extension methods in C#.
Alternatively, I am open to exploring other options besides TypeLite as I find the structure of having everything in a single file quite limiting.