We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce2559 commit 42d226cCopy full SHA for 42d226c
1 file changed
src/compiler/binder.ts
@@ -399,7 +399,7 @@ namespace ts {
399
// 1. multiple export default of class declaration or function declaration by checking NodeFlags.Default
400
// 2. multiple export default of export assignment. This one doesn't have NodeFlags.Default on (as export default doesn't considered as modifiers)
401
if (symbol.declarations && symbol.declarations.length &&
402
- (isDefaultExport || (node.kind === SyntaxKind.ExportAssignment && !(<ExportAssignment>node).isExportEquals))) {
+ (node.kind === SyntaxKind.ExportAssignment && !(<ExportAssignment>node).isExportEquals)) {
403
message = Diagnostics.A_module_cannot_have_multiple_default_exports;
404
}
405
0 commit comments