title: Where to include type definition file in new angular webpack setup
body: <p>We recently moved to latest angular 2.0 and have started using angular-cli, webpack to build our application. As of now when we use ng test, build etc, application runs fine and gives desired output, however, the automatic compilation (using webstorm) always throw lots of error. Earlier we used to provide a main.ts which in term refers to other d.ts files. main.ts was used in tsconfig.json. So everything was smooth without any error.
  e.g. a simple test like this will throw static compilation error for describe, it, expect.</p>
  
  <pre><code>describe("it is a suite",()=&gt;{
  it("it is a test",()=&gt;{
  expect(1).toBe(2);
  })
  });
  </code></pre>
  
  <p>if I include jasmine.d.ts file reference in this test file, everything goes away.</p>
  
  <p>including import from '@angular/core/testing' throws error that there are no such exported member.</p>
  
  <p>So, the question - Where and how should we include the type definition file to avoid this static compilation?</p>
  
  <p>more information - In webstorm settings, I have selected bundled (1.8.10) version and with enabled typescript compiler I am using tsconfig.json</p>
  
  <p>tsconfig.json has content from angular-cli project <a href="https://github.com/angular/angular-cli/blob/f6fa1a5218e9b43ab3ce29151a95efe915742562/packages/angular-cli/blueprints/ng2/files/__path__/tsconfig.json" rel="nofollow">here</a>
  with addition in files section to include main.ts and typings.d.ts</p>
  
  <p>typing.d.ts has nothing where as main.ts includes reference to other d.ts file referenced under the 'typings' folder under root.</p>