title: How to import modules with ‘Typings’ in TypeScript without <reference>?
body: <p>I`m trying to write tests with <strong>Protractor</strong> and <strong>Jasmine</strong> in <strong>TypeScript</strong>. TSD is now deprecated so I have to use 'Typings' to manipulate TypeScript definitions. So I installed it:</p>
  
  <pre><code>npm install typings -g
  </code></pre>
  
  <p>Then I used it to install Jasmine and Chance definitions like that:</p>
  
  <pre><code>typings install jasmine --source dt --save –-global
  typings install chance--source dt --save –-global
  </code></pre>
  
  <p>And I also added <strong>“files”</strong> section and excluded 'node_modules':</p>
  
  <pre><code>// tsconfig.json
  {
    "compilerOptions": {
      "target": "es5",
      "module": "commonjs",
      "moduleResolution": "node",
      "sourceMap": true,
      "declaration": false,
      "noImplicitAny": false,
      "outDir": "tmp",
      "types": ["node", "jasmine", "chance"]
    },
    "files": [
      "typings/index.d.ts"
    ],
    "include": [
      "lib",
      "specs"
    ],
    "exclude": [
      "node_modules"
    ]
  }
  </code></pre>
  
  <p>The problem is neither WebStorm nor Visual Code studio can`t find definitions for all Jasmine methods and 'chance' module. Errors are:</p>
  
  <pre><code>**“TS2304: Cannot find name 'describe'”** 
  **“TS2307: Cannot find module 'chance'”**
  </code></pre>
  
  <p>respectively. Here is my spec file:</p>
  
  <p><a href="https://i.stack.imgur.com/oZQ4o.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/oZQ4o.jpg" alt="enter image description here"></a></p>
  
  <p>In 'typings/' folder I see reference links to TypeScript definitions:</p>
  
  <p><a href="https://i.stack.imgur.com/6G2sB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/6G2sB.jpg" alt="folders structure and typings/index.d.ts content"></a></p>
  
  <p>Am I missing something? Why my IDE can`t find definitions for Jasmine and Chance?</p>
  
  <p><strong>P.S.</strong> Test works after transpiling to Javacript.</p>
  
  <p><strong>P.S.S.</strong> Errors will disappear after adding</p>
  
  <pre><code>///&lt;reference path="###"/&gt;
  </code></pre>
  
  <p>to the spec file. But I don`t want to use it.</p>
  
  <pre><code>Protractor: 4.0.9;
  TypeScript 2.0.3;
  Typings 1.5.0;
  </code></pre>
  
  <p>Thanks  in advance!</p>