node-typescript-parser icon indicating copy to clipboard operation
node-typescript-parser copied to clipboard

[Bug] Unclear default export

Open Wayofthesin opened this issue 6 years ago • 0 comments

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

Wayofthesin avatar Jan 26 '19 00:01 Wayofthesin