mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix getter of local symbol for export= when it is json module
Fixes #24341
This commit is contained in:
@@ -579,6 +579,9 @@ namespace ts.FindAllReferences {
|
||||
else if (isBinaryExpression(decl)) { // `module.exports = class {}`
|
||||
return Debug.assertDefined(decl.right.symbol);
|
||||
}
|
||||
else if (isSourceFile(decl)) { // json module
|
||||
return Debug.assertDefined(decl.symbol);
|
||||
}
|
||||
return Debug.fail();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user