Why the limitation on exporting an interface by default in TypeScript?
TypeScript v2.4.0 allows export default interface
. Here is the pull-request that introduced the change.
We can now do both of these:
// Foo.ts
export interface Foo { }
// Bar.ts
export default interface Bar { }
// Baz.ts
import { Foo } from "./foo";
import Bar from "./bar";
export class Baz implements Foo, Bar
{
}