We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dba6c9b commit b33d372Copy full SHA for b33d372
src/compiler/checker.ts
@@ -2840,7 +2840,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2840
// When merging the module augmentation into a.ts, the symbol for `A` will itself be merged, so its parent
2841
// should be the merged module symbol. But the symbol for `B` has only one declaration, so its parent should
2842
// be the module augmentation symbol, which contains its only declaration.
2843
- merged.parent = mergedParent;
+ if (merged.flags & SymbolFlags.Transient) {
2844
+ merged.parent = mergedParent;
2845
+ }
2846
}
2847
target.set(id, merged);
2848
});
0 commit comments