title: How to load jquery module in a typescript file?
body: <p>To import the <code>jquery</code> library in my typescript project, I did the following.</p>
  
  <ul>
  <li>npm install typings --global</li>
  <li>typings install dt~jquery --global --save</li>
  </ul>
  
  <p>Then in my typescript file, I did:</p>
  
  <pre><code>import {jquery as $} from 'jquery';
  </code></pre>
  
  <p>But the transcript compiler throws an error saying:</p>
  
  <pre><code>error TS2307: Cannot find module 'jquery'.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TMoid.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TMoid.png" alt="enter image description here"></a></p>
  
  <p>What is that I am missing here? Why can the compiler not find the jquery module?</p>
  
  <p>Typescript version I am using : <code>2.1.5</code></p>