We have an already existing JavaScript system.
What we want to do: We would like to start to integrate TypeScript into the current system; We cannot just move everything to TypeScript. We want to slowly start writing some of the new modules in TypeScript.
What we tried: We use a pattern for organizing our JS code simillar to the MODULE TypeScript construct.
We tried to rewrite a simple class/object in TypeScript and were successful but we had trouble accessing JS functions defined in our code, in other files.
Problems Encountered: We had to create dummy interfaces, and dummy functions using those interfaces etc.
So the question: can anyone comment, what would be the best approach to slowly integrate TypeScript into an existing JavaScript system.