node-typescript-parser
node-typescript-parser copied to clipboard
[Bug] Unclear default export
Given the file:
export default class MyClass {
// MyClass implementation
}
The parsed File object has following declarations:
[
DefaultDeclaration: {
isExported: true,
exportedDeclaration: self
},
ClassDeclaration (MyClass): {
isExported: false
}
]
Expected:
- ClassDeclaration.isExported to be true
- DefaultDeclaration.exportedDeclaration to be MyClass declaration