title: Calling JavaScript function inside a JavaScript module from TypeScript v2.2.1
body: <p>I've a JavaScript module in this way</p>
  
  <p><strong>myJSModule.js</strong></p>
  
  <pre><code>var myJSModule = function () {
     var _public_ = {};
  
     _public_.foo = function () {
     }
  
     return _public_;
  }();
  </code></pre>
  
  <p>Now I need to call it in a function in TypeScript</p>
  
  <p><strong>myTypeScript.ts</strong></p>
  
  <pre><code>namespace Custom {
  
      export function foo111() {
          myJSModule.foo(); // error: "Symbol myModule can't be properly resolved"
      }
  }
  </code></pre>
  
  <p>What's the correct way to call foo in <em>myJSModule</em>?</p>