I bring
this question from StackOverflow to here because I think there is no way to deal with some statements like:
#import "file.js"
and possibly other statements in other dialects of javascript like
Apple's UIAutomation.
I think a solution would be to add some compiler directives. That would tell TypeScript not to process a certain piece of code but just copy it into the result js file.
I imagine something like GCC's pragmas (?)