title: VS Code Typescript intellisense does not read correctly Typings
body: <p>I have installed in my Ionic 3 project <a href="https://www.npmjs.com/package/pdfjs-dist" rel="nofollow noreferrer">pdfjs-dist</a> from npm and the <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/tree/354cec620daccfa0ad167ba046651fb5fef69e8a/types/pdf" rel="nofollow noreferrer">typings from DT</a>, but I do not get the correct intellisense, look: <a href="https://imgur.com/ctIqkE7" rel="nofollow noreferrer">http://imgur.com/ctIqkE7</a></p>
  
  <p>VS Code: 1.12.2
  Typescript: 2.3.3</p>
  
  <p>In my typings folder I have:</p>
  
  <ul>
  <li>Typings
  
  <ul>
  <li>Globals
  
  <ul>
  <li>pdf
  
  <ul>
  <li>index.d.ts</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>My tsconfig.json says:</p>
  
  <pre><code>{
  "compilerOptions": {
      "allowSyntheticDefaultImports": true,
      "declaration": false,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "lib": [
        "dom",
        "es2015"
      ],
      "module": "es2015",
      "moduleResolution": "node",
      "sourceMap": true,
      "target": "es5",
      "allowJs": true
    },
    "include": [
      "src/**/*.ts"
    ],
    "exclude": [
      "node_modules"
    ],
    "compileOnSave": false,
    "atom": {
      "rewriteTsconfig": false
    }
  }
  </code></pre>
  
  <p>and my dependencies are:</p>
  
  <pre><code>"dependencies": {
          "@angular/common": "4.1.2",
          "@angular/compiler": "4.1.2",
          "@angular/compiler-cli": "4.1.2",
          "@angular/core": "4.1.2",
          "@angular/forms": "4.1.2",
          "@angular/http": "4.1.2",
          "@angular/platform-browser": "4.1.2",
          "@angular/platform-browser-dynamic": "4.1.2",
          "@ionic-native/core": "3.10.2",
          "@ionic-native/splash-screen": "3.10.2",
          "@ionic-native/status-bar": "3.10.2",
          "@ionic/storage": "2.0.1",
          "@types/pdf": "0.0.31",
          "cordova-android": "^6.2.3",
          "cordova-ios": "^4.4.0",
          "cordova-plugin-console": "^1.0.5",
          "cordova-plugin-device": "^1.1.4",
          "cordova-plugin-splashscreen": "^4.0.3",
          "cordova-plugin-statusbar": "^2.2.2",
          "cordova-plugin-whitelist": "^1.3.1",
          "ionic-angular": "3.3.0",
          "ionic-plugin-keyboard": "^2.2.1",
          "ionicons": "3.0.0",
          "pdfjs-dist": "^1.8.428",
          "rxjs": "5.1.1",
          "sw-toolbox": "3.6.0",
          "zone.js": "0.8.11"
      },
      "devDependencies": {
          "@ionic/app-scripts": "1.3.7",
          "@ionic/cli-plugin-cordova": "1.3.0",
          "@ionic/cli-plugin-ionic-angular": "1.3.0",
          "typescript": "2.3.3"
      },
  </code></pre>
  
  <p>I have looked other questions here <a href="https://stackoverflow.com/questions/40224476/vs-code-typings-no-intellisense">like</a> this or <a href="https://stackoverflow.com/questions/31737133/typescript-intellisense-with-import-statement-vs-code">this</a> and did not find an solution.</p>
  
  <p><strong>Edit:</strong>
  I had added updated my includes with the path to the dt typings <code>"typings/**/*.d.ts"</code> and I had this warning while compiling:</p>
  
  <blockquote>
    <p>typescript: node_modules/@types/pdf/index.d.ts, line: 51
                Duplicate string index signature.</p>
    
    <p>L51:   * A unique ID to identify a PDF.  Not guaranteed to be unique.  [jbaldwin: haha what]</p>
    
    <p>L52:   **/</p>
  </blockquote>
  
  <p>That point me out that the types are not been reading from <code>typings/**</code> but from <code>node_modules/@types/</code>. I took a look and saw that both <code>index.d.ts</code> files are exactly the same so I uninstalled the typings outside node.</p>
  
  <p>After a while of looking into it I have two main theories about my problem.
  1. I do not know what I am doing (Very possible)
  2. The Typings are wrong and/or Outdated.</p>
  
  <p>I have found a  <code>PDFJSStatic</code> interface that contains the "unintellisensed" method in my screen capture that is exported in the typings. If I do something like:</p>
  
  <pre><code>import * as PDF_JS  from 'pdfjs-dist';
  let pdfjsLib : PDFJSStatic = PDF_JS;
  </code></pre>
  
  <p>I finally get Info about the <code>getDocument()</code> method but a lot of other functions get broken. </p>
  
  <p>If I get the PDFJSStatic as an own variable:</p>
  
  <pre><code>var PDFJSStatic : PDFJSStatic = pdfjsLib.PDF;
  </code></pre>
  
  <p>The intellisense works but obviously the functions does not exist.</p>