Skip to content

Commit 56b3353

Browse files
committed
Support module augmentation
1 parent 2fa481c commit 56b3353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -984,10 +984,10 @@ namespace ts {
984984
function getTargetOfGlobalModuleExportDeclaration(node: GlobalModuleExportDeclaration): Symbol {
985985
const moduleSymbol = node.parent.symbol;
986986
if (moduleSymbol && moduleSymbol.exports && moduleSymbol.exports["export="]) {
987-
return moduleSymbol.exports["export="].exportSymbol;
987+
return getMergedSymbol(moduleSymbol.exports["export="].exportSymbol);
988988
}
989989
else {
990-
return moduleSymbol;
990+
return getMergedSymbol(moduleSymbol);
991991
}
992992
}
993993

0 commit comments

Comments
 (0)