I came across with the following problem with TypeScript:
There is a module, which uses a function myApp.common.anotherFunc()
from "old" js code :
module myApp {
export module helpers {
export class baseHelper {
doWork() {
var m = myApp.common.anotherFunc();
}
}
}
}
As a result typescript compiler shows an error "Property does not exist on type". How can I overcome this problem without rewriting my old functionality in myApp.common
?
P.S. TS version is 2.0 if it matters