File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -3531,7 +3531,7 @@ export function isSpecialPropertyDeclaration(expr: PropertyAccessExpression | El
3531
3531
export function setValueDeclaration ( symbol : Symbol , node : Declaration ) : void {
3532
3532
const { valueDeclaration } = symbol ;
3533
3533
if ( ! valueDeclaration ||
3534
- ! ( node . flags & NodeFlags . Ambient && ! ( valueDeclaration . flags & NodeFlags . Ambient ) ) &&
3534
+ ! ( node . flags & NodeFlags . Ambient && ! isInJSFile ( node ) && ! ( valueDeclaration . flags & NodeFlags . Ambient ) ) &&
3535
3535
( isAssignmentDeclaration ( valueDeclaration ) && ! isAssignmentDeclaration ( node ) ) ||
3536
3536
( valueDeclaration . kind !== node . kind && isEffectiveModuleDeclaration ( valueDeclaration ) ) ) {
3537
3537
// other kinds of value declarations take precedence over modules and assignment declarations
You can’t perform that action at this time.
0 commit comments