title: How to import all types from a module in Angular2 / Typescript (and deal with renaming of a module)?
body: <p>Each time I need to import a new type, I have to manually add it, which is very cumbersome especially if you are used working with C#, where you don't need to care about filenames, but namespace is enough. It is especially bad when you rename a file and have to rename all of the imports.</p>
  
  <p>E.g. I have this line:</p>
  
  <pre><code>import { Headers, Http, Response, URLSearchParams } from '@angular/http';
  </code></pre>
  
  <p>So first of all I would like to import all types, something like:</p>
  
  <pre><code>import * from '@angular/http'
  </code></pre>
  
  <p>Next step I would like to create files a declarations with imports that will have multiple imports from a <code>@angular/core</code>, <code>@angular/http</code>, etc. and then include them in my services e.g. In this case I can group some declarations in a "virtual namespace" that I can reference from my files.</p>
  
  <p>Is it possible to achieve or there is some better way that can reduce the pain of manually importing things and dealing with renaming/moving a module? Are there any drawbacks of doing this (I am not sure what importing of a module implies. In C# and such that would be just additional namespaces to look for references during static compilation which you usually don't care about at all)?</p>
  
  <p>P.S. There seems to be some kind of <code>import 'rxjs/add/observable/of'</code> syntax, but I can't manage to make it work, seems it only works with .d.ts declarations, but I am not quite sure...</p>