title: Jquery in Typescript, AJAX: exports is not defined
body: <p>I am trying to get AJAX working in typescript, so i've found a way how to add Jquery to Typescript.
  I called these commands in VS code terminal:</p>
  <pre><code>npm install jquery --save
  npm install --save @types/jquery
  npm install @types/jquery --save-dev
  </code></pre>
  <p>After that i added these rows at the top of my main typescript file:</p>
  <pre><code>import jquery = require(&quot;jquery&quot;);
  const $: JQueryStatic = jquery;
  </code></pre>
  <p>After I use <code>tsc scripts.ts</code> i get <code>scripts.js</code> file and move generated .js file to the project i get the error in the chrome browser: <code>Uncaught ReferenceError: exports is not defined</code>.
  <a href="https://i.imgur.com/FmDVIYi.png" rel="nofollow noreferrer">https://i.imgur.com/FmDVIYi.png</a></p>
  <p>This is not react or angular project.</p>
  <p>I don't know why, but it hard to find working answer on my question.. It seems like majority is using react or angular, so answers not fits to my problem.</p>
  <p>All i want is to use AJAX calls via Typescript.</p>