mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-13 18:14:48 -05:00
fix(51716): find all references in imported JSDoc types (#51729)
This commit is contained in:
@@ -44,6 +44,7 @@ import {
|
||||
isImportEqualsDeclaration,
|
||||
isImportTypeNode,
|
||||
isInJSFile,
|
||||
isJSDocCallbackTag,
|
||||
isJSDocTypedefTag,
|
||||
isModuleExportsAccessExpression,
|
||||
isNamedExports,
|
||||
@@ -612,7 +613,7 @@ export function getImportOrExportSymbol(node: Node, symbol: Symbol, checker: Typ
|
||||
else if (isBinaryExpression(grandparent)) {
|
||||
return getSpecialPropertyExport(grandparent, /*useLhsSymbol*/ true);
|
||||
}
|
||||
else if (isJSDocTypedefTag(parent)) {
|
||||
else if (isJSDocTypedefTag(parent) || isJSDocCallbackTag(parent)) {
|
||||
return exportInfo(symbol, ExportKind.Named);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user