We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83dc0bb commit 0efb559Copy full SHA for 0efb559
1 file changed
src/compiler/checker.ts
@@ -2807,7 +2807,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2807
// When merging the module augmentation into a.ts, the symbol for `A` will itself be merged, so its parent
2808
// should be the merged module symbol. But the symbol for `B` has only one declaration, so its parent should
2809
// be the module augmentation symbol, which contains its only declaration.
2810
- merged.parent = mergedParent;
+ if (merged.flags & SymbolFlags.Transient) {
2811
+ merged.parent = mergedParent;
2812
+ }
2813
}
2814
target.set(id, merged);
2815
});
0 commit comments