title: How to import a js library without definition file in typescript file
body: <p>I want to switch from JavaScript to TypeScript to help with code management as our project gets larger. We utilize, however, lots of libraries as amd Modules, which we do not want to convert to TypeScript.</p>
  
  <p>We still want to import them into TypeScript files, but we also do not want to generate definition files. How can we achieve that?</p>
  
  <p>e.g. The new Typescript file:</p>
  
  <pre><code>/// &lt;reference path="../../../../definetelyTyped/jquery.d.ts" /&gt;
  /// &lt;reference path="../../../../definetelyTyped/require.d.ts" /&gt;
  import $ = require('jquery');
  import alert = require('lib/errorInfoHandler');
  </code></pre>
  
  <p>Here, <code>lib/errorInfoHandler</code> is an amd module included in a huge JavaScript library that we do not want to touch.</p>
  
  <p>Using the above code produces the following errors:</p>
  
  <pre><code>Unable to resolve external module ''lib/errorInfoHandler'' 
  Module cannot be aliased to a non-module type.
  </code></pre>
  
  <p>This should actually produce the following code:</p>
  
  <pre><code>define(["require", "exports", "jquery", "lib/errorInfoHandler"], function(require, exports, $, alert) {
  ...
  
  }
  </code></pre>
  
  <p>Is there a way to import a JavaScript library into TypeScript as an amd Module and use it inside the TypeScript file without making a definition file?</p>