title: TypeScript unable to load / use table2excel
body: <p>I'm using this <a href="https://www.npmjs.com/package/table2excel" rel="nofollow noreferrer">plugin</a> in my TypeScript webpart for SharePoint Online</p>
  
  <p>I've included <code>jquery</code> and <code>table2excel</code> in the script and everything not related to <code>table2excel</code> is working fine.</p>
  
  <pre><code>import * as $ from 'jquery';
  require('table2excel');
  </code></pre>
  
  <p>I have installed 'table2excel' by using <code>npm i table2excel</code></p>
  
  <p>Then when I try to use <code>table2excel</code> it returns the following error:
  ```</p>
  
  <blockquote>
    <p>$(...).table2excel is not a function
    ```</p>
  </blockquote>
  
  <pre><code>(&lt;any&gt;$("#ViewTablehidden")).table2excel({
      exclude: ".noExl",
      name: "title",
      filename: "title",
      fileext: ".xls",
      exclude_img: true,
      exclude_links: true,
      exclude_inputs: true
  });
  </code></pre>
  
  <p>Why can't I get it to work?</p>