title: How to properly "declare" a module? (TS7016)
body: <p>First, here's my <code>tsconfig.json</code>:</p>
  
  <pre><code>{
      "compilerOptions": {
          "strict": true,
          "importHelpers": false,
          "inlineSources": true,
          "noEmitOnError": true,
          "pretty": true,
          "module": "commonjs",
          "noImplicitAny": true,
          "suppressImplicitAnyIndexErrors": false,
          "removeComments": true,
          "preserveConstEnums": false,
          "sourceMap": true,
          "lib": ["es2017","esnext.asynciterable"],
          "skipLibCheck": true,
          "outDir": "dist",
          "target": "es2018",
          "declaration": true,
          "types" : ["node"],
          "resolveJsonModule": true,
          "esModuleInterop": false
      },
      "files": [
          "src/DatabaseWrapper"
      ],
      "exclude": [
          "node_modules"
      ]
  }
  </code></pre>
  
  <p>Now I've tried to import a JavaScript library:</p>
  
  <pre><code> import Napi from '@org/napi-js';
  </code></pre>
  
  <p>And I get this error:</p>
  
  <blockquote>
    <p>TS7016: Could not find a declaration file for module 'napi-js'. '/home/mpen/Projects/my-project/node_modules/@org/napi-js/dist/index.js' implicitly has an 'any' type.
    Try <code>npm install @types/org__napi-js</code> if it exists or add a new declaration (.d.ts) file containing `declare module 'org__napi-js';</p>
  </blockquote>
  
  <p>The <code>@types/org__napi-js</code> doesn't exist, so that's no good. So how do I properly declare it?</p>
  
  <p>I've tried creating a file, <code>types/org__napi-js.d.ts'</code> with just this in it:</p>
  
  <pre><code>declare module 'org__napi-js';
  </code></pre>
  
  <p>And then I tried updating my <code>tsconfig.json</code> so it can find it:</p>
  
  <pre><code>{
      "compilerOptions": {
          ...
          "baseUrl": "./",
          "paths": {
              "*": ["types/*"]
          }
      },
      ...
  </code></pre>
  
  <p>But that didn't help any.</p>
  
  <p>What am I supposed to do? Or, more explicitly:</p>
  
  <ol>
  <li>How do I tell TypeScript where to find my module?</li>
  <li>What's the minimum amount of code that needs to go in this module to just say the default export is <code>any</code>?</li>
  </ol>
  
  <p>I think I want to put all these stubs in <code>types/</code>, and my source in <code>src/</code> unless  there's some standard way to organize a TS project.</p>