I have declared an enum in a d.ts file
declare enum myenum
{
TYPE_ONE,
TYPE_TWO,
}
declare class MobileAPI extends NSObject {....}
Now I am accessing the enum in a .ts file like bellow.
this.mobileAPI.addType(myenum.TYPE_ONE,NSString.stringWithString("someString"));
I can compile the app, but getting following JS error
JS ERROR ReferenceError: Can't find variable: myenum
What's am I doing wrong here, please share some idea on this