title: How to use added typings in typescript
body: <p>I am trying to learn Typescript, and have set up a basic typescript structure following <a href="https://www.typescriptlang.org/docs/handbook/gulp.html" rel="nofollow noreferrer">this</a> tutorial. </p>
  
  <p>I need to add typings to the project now. So I looked around and found <a href="https://github.com/typings/typings" rel="nofollow noreferrer">typings</a>. Then I added <code>JQuery</code>,<code>Lodash</code>, and <code>D3</code> using typings. My project structure looks like this: </p>
  
  <pre><code>├── dist
  │   ├── chart.js
  │   ├── greet.js
  │   └── main.js
  ├── gulpfile.js
  ├── package.json
  ├── src
  │   └── ts
  │       ├── chart.ts
  │       ├── greet.ts
  │       └── main.ts
  ├── tsconfig.json
  ├── typings
  │   ├── globals
  │   │   └── jquery
  │   │       ├── index.d.ts
  │   │       └── typings.json
  │   ├── index.d.ts
  │   └── modules
  │       ├── d3
  │       │   ├── index.d.ts
  │       │   └── typings.json
  │       └── lodash
  │           ├── index.d.ts
  │           └── typings.json
  └── typings.json
  </code></pre>
  
  <p>This is my <code>tsconfig.json</code> file:</p>
  
  <pre><code>{
      "files": [
          "src/ts/*.ts"
      ],
      "compilerOptions": {
          "noImplicitAny": true,
          "target": "es5"
      }
  }
  </code></pre>
  
  <p>My question is, how do I add the <code>*.d.ts</code> files which I have in <code>typings</code> directory in my <code>main.ts</code> file and start using jQuery's <code>$</code> or D3's <code>d3</code>?</p>
  
  <p>I noticed <code>index.d.ts</code> file in <code>typings</code> which looks like this: </p>
  
  <pre><code>/// &lt;reference path="globals/jquery/index.d.ts" /&gt;
  /// &lt;reference path="modules/d3/index.d.ts" /&gt;
  /// &lt;reference path="modules/lodash/index.d.ts" /&gt;
  </code></pre>
  
  <p>So my guess is, I just need to add this file somewhere in my <code>main.ts</code> file or in my <code>tsconfig.json</code> file(instead of manually adding each <code>.d.ts</code> file). Am I right? Thanks. </p>