title: typescript does not find jszip types
body: <p>I have a strange issue where typescript does not find the types for <code>jszip</code>.</p>
  
  <ul>
  <li>other types work fine</li>
  <li>the types seem to be in the correct location </li>
  </ul>
  
  <p>in my source-file I use these <strong>imports</strong> e.g. </p>
  
  <pre><code>import * as fast_csv from 'fast-csv';
  import { Response } from 'express';
  import fs from 'fs';
  import * as JSZip from 'jszip';
  </code></pre>
  
  <p>all work fine, except for <code>jszip</code>: 
  <a href="https://i.stack.imgur.com/bucWx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bucWx.png" alt="es"></a></p>
  
  <pre><code>Error:(9, 24) TS7016: Could not find a declaration file for module 'jszip'. 'ROOT/node_modules/jszip/dist/jszip.min.js' implicitly has an 'any' type.
  </code></pre>
  
  <p>When I look into my (one and only) <strong><code>node_modules/@types</code></strong> dir, all files are there:
  <a href="https://i.stack.imgur.com/OKo2O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OKo2O.png" alt="enter image description here"></a></p>
  
  <p>here are the relevant entries from <strong><code>package.json</code></strong></p>
  
  <pre><code>  "dependencies": {
      "@hapi/joi": "^15.0.1",
      "fast-csv": "^2.5.0",
      "jszip": "^3.2.1"
    },
    "devDependencies": {
      "@types/express": "^4.16.0",
      "@types/hapi__joi": "^15.0.1",
      "@types/jszip": "^3.1.6",
     }
  </code></pre>
  
  <p>notes:</p>
  
  <ul>
  <li>I thought typescript only uses the name: e.g. when importing <code>jszip</code> it should search for <code>@types/jszip</code>
  
  <ul>
  <li>but it seems that I am wrong, because the types of <code>@hapi/joi</code> are called <code>@types/hapi__joi</code> and they work fine</li>
  </ul></li>
  <li>I think also the version mismatch shoudl not be an issue: <code>"jszip": "^3.2.1"</code> vs. <code>"@types/jszip": "^3.1.6"</code>, right? </li>
  <li>the code-completion in the IDE shows also the types: 
  <a href="https://i.stack.imgur.com/NhYvB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NhYvB.png" alt="enter image description here"></a></li>
  </ul>
  
  <p>Any idea, what I am missing?</p>
  
  <p>related links:</p>
  
  <ul>
  <li><a href="http://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html" rel="nofollow noreferrer">typescript doc: consume declaration files</a></li>
  <li><a href="http://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types" rel="nofollow noreferrer">@types, typeRoots and types</a></li>
  <li><a href="https://www.npmjs.com/package/@types/jszip" rel="nofollow noreferrer">npm @types/jszip</a></li>
  </ul>