mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 07:07:09 -05:00
fix(47134): show all meanings for type-only imports and exports (#47138)
This commit is contained in:
@@ -99,13 +99,6 @@ namespace ts {
|
||||
|| isImportSpecifier(parent)
|
||||
|| isImportClause(parent)
|
||||
|| isImportEqualsDeclaration(parent) && node === parent.name) {
|
||||
let decl: Node = parent;
|
||||
while (decl) {
|
||||
if (isImportEqualsDeclaration(decl) || isImportClause(decl) || isExportDeclaration(decl)) {
|
||||
return decl.isTypeOnly ? SemanticMeaning.Type : SemanticMeaning.All;
|
||||
}
|
||||
decl = decl.parent;
|
||||
}
|
||||
return SemanticMeaning.All;
|
||||
}
|
||||
else if (isInRightSideOfInternalImportEqualsDeclaration(node)) {
|
||||
|
||||
Reference in New Issue
Block a user