Is `export interface` needed?
bmeck opened this issue · comments
Bradley Farias commented
It seems that interfaces are objects, so couldn't you just:
interface Monad {/*...*/};
export default Monad;
Michael Ficarra commented
It's just as necessary as any of the other combined declaration/export forms. You could make the same argument that we don't need
export class C {}
because we have
class C {}
export { C }
or
export function f() {}
because we have
function f() {}
export { f }
For consistency, I will leave this in the proposal.
Bradley Farias commented
Ah, might want to clear that up then, I assumed it was w/o a body.
Bradley Farias commented
like:
export interface T;
Michael Ficarra commented
Okay, I will clear that up. Thanks for the feedback.