title: Why the limitation on exporting an interface by default in TypeScript?
body: <p>I'm using TypeScript 1.5 beta, and I'm trying to export an interface as the default export. The following code causes an error in both Visual Studio and WebStorm:</p>
  
  <pre><code>export default interface Foo {...}
  </code></pre>
  
  <p>However, the following code works fine:</p>
  
  <pre><code>interface Foo {...}
  export default Foo;
  </code></pre>
  
  <p>Is this by design, is it a bug, or am I doing something wrong?</p>
  
  <p><strong>EDIT:</strong> Thank you for your answer. It begs the question, however, so what is the accepted way to import an interface using the ES6 module syntax?</p>
  
  <p>This works:</p>
  
  <pre><code>// Foo.ts
  export interface Foo {}
  
  // Bar.ts
  import {Foo} from 'Foo'; // Notice the curly braces
  
  class Bar {
      constructor(foo:Foo) {}
  }
  </code></pre>
  
  <p>But, since that works, why not allow a default export and save the curly braces?</p>
  
  <pre><code>// Foo.ts
  export default interface Foo {}
  
  // Bar.ts
  import Foo from 'Foo'; // Notice, no curly braces!
  
  class Bar {
      constructor(foo:Foo) {}
  }
  </code></pre>