I have a JavaScript module structured like this
myJSModule.js
var myJSModule = function () {
var _public_ = {};
_public_.foo = function () {
}
return _public_;
}();
Now I am attempting to use it within a TypeScript function
myTypeScript.ts
namespace Custom {
export function foo111() {
myJSModule.foo(); // error: "Symbol myModule can't be properly resolved"
}
}
What is the correct approach to calling the foo method in myJSModule?