title: Importing JS File into Typescript
body: <p>I'm looking at moving over to Typescript and currently looking at doing this slowly if possible file by file.</p>
  
  <p>Now the system I currently have is built with Webpack and I'm wanting to continue this for building my overall bundle.</p>
  
  <p>I have a .d.ts file for the definition but I need my file to continue importing which currently is throwing an error.</p>
  
  <pre><code>/// &lt;reference path="../../../../vendor/src/foo.d.ts" /&gt;
  import foo = require('../../../../vendor/src/foo.js');
  
  foo('something');
  </code></pre>
  
  <p>This currently is throwing errors I have also tried without the reference path and this seems to raise an error that it is not a module. Currently the only way I can have no errors raised is not importing and simply adding the reference but this will mean that webpack will not know the location of my file.</p>
  
  <p>Any ideas I have searched quite a lot but I can't really make sense of importing JS files into Typescript.</p>