title: Export all interfaces/types from one file in TypeScript project
body: <p>The direct interface to my library is captured by</p>
  
  <pre><code>index.d.ts
  </code></pre>
  
  <p>which is currently auto-generated from</p>
  
  <pre><code>index.ts
  </code></pre>
  
  <p>in my package.json file for my project, typings/types properties point to this index.d.ts file, which is to my understanding, how it should be. All good so far.</p>
  
  <p>However, there are some more types that I would like to export from index.d.ts that are not currently expressed in index.d.ts.</p>
  
  <p>For example I have some manually created types in</p>
  
  <pre><code>foo.d.ts
  bar.d.ts
  </code></pre>
  
  <p>and I want these to be expressed in index.d.ts.</p>
  
  <p>The only way I think that might work, is to import the foo.d.ts/bar.d.ts types into index.d.ts and then in turn export them from that file.</p>
  
  <p>However, I am having trouble with that!</p>
  
  <p>Here is what I tried:</p>
  
  <pre><code>// index.ts
  
  import {IBar} from '../bar.d.ts'
  import {IFoo} from '../foo.d.ts'
  
  // ... do some stuff with index.ts yadda yadda
  
  export type IBar = IBar; // doesn't seem to work
  export interface IFoo = IFoo; // doesn't seem to work
  </code></pre>
  
  <p>is this possible? How do I do this?</p>