I wonder if anyone has tried implementing iOS UIAutomation tests using Typescript.
I guess I will need to make my own declaration files and add them as needed however there is one thing I cannot figure out. Other javascript files need to be imported using the #import statement at the begging of sources. Something like this:
#import "File.js"
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
target.logElementTree();
...
How can I deal with this syntax in Typescript? I thought of telling the compiler not to process #import "File.js just copy it into the result js but I couldn’t find any compiler directives or alikes in the specification. Is this even possible?
Unfortunately there is currently no way to do this in Typescript. There is also an issue at codeplex. Until Microsoft comes around and adds directives, you’ll have to do it manually.