title: Typescript conflict between "module/index.d.ts" and "@types/module/index.d.ts"
body: <p>I have a 3rd party module ("handsontable"), which has outdated definition in module folder ("/node_modules/handsontable/handsontable.d.ts"), but proper "index.d.ts" in /node_modules/@types folder.
  So the structure is the following:</p>
  
  <pre><code>/node_modules
    /@types
      /handsontable
         /index.d.ts (LATEST)
    /handsontable
      /handsontable.d.ts (OUTDATED)
  /src/app.ts
  </code></pre>
  
  <p>I am using es6 modules and I don't want to expose handsontable to global, so when I write in app.ts:</p>
  
  <pre><code>import ht from 'handsontable'
  
  let options: ht.Options
  </code></pre>
  
  <p>It shows me error, because <code>ht.Options</code> does not exist in <code>/node_modules/handsontable/handsontable.d.ts</code>, while it only exists in <code>/node_modules/@types/handsontable/index.d.ts</code></p>
  
  <p>Is there anyway to force typescript to load type information from <code>/node_modules/@type/module</code> during <code>import m from "module"</code>?</p>
  
  <p>Here is my <strong>tsconfig.json</strong>:</p>
  
  <pre><code>{
      "exclude": [
          "node_modules","build","dist", "typings","types"
      ],
  
      "include": [
          "./src/**/*.ts"
      ],
  
      "typeAcquisition": {
          "enable": true
          // "exclude": [ //tried that too
          //     "handsontable"
          // ]
      },
      "compileOnSave": true,
      "compilerOptions": {
          "baseUrl": "node_modules",
          "paths": {
              "src/*":["../src/*"],
              "app/*":["../src/*"],
              "*":["../src/*", "./node_modules"]
          },
          "target": "es2016",
          //"module": "es6", //es6 is not compatible with webpack.config.ts
          "moduleResolution": "node",
          "allowSyntheticDefaultImports": true, 
          "sourceMap": true,
          "allowJs": true,
          "outDir": "./build",
          "experimentalDecorators": true,
          "lib": [
              "dom",
              "es6"
          ]
      }
  }
  </code></pre>
  
  <p><strong>Typescript version</strong>: 2.4.2</p>