mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
co-authored by
Jake Bailey
parent
1109550e2c
commit
f35206d202
@@ -29672,8 +29672,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
if (!canCollectSymbolAliasAccessabilityData) {
|
||||
return;
|
||||
}
|
||||
if (location.flags & NodeFlags.Ambient) {
|
||||
return; // References within types and declaration files are never going to contribute to retaining a JS import
|
||||
if (location.flags & NodeFlags.Ambient && !isPropertySignature(location) && !isPropertyDeclaration(location)) {
|
||||
// References within types and declaration files are never going to contribute to retaining a JS import,
|
||||
// except for properties (which can be decorated).
|
||||
return;
|
||||
}
|
||||
switch (hint) {
|
||||
case ReferenceHint.Identifier:
|
||||
|
||||
Reference in New Issue
Block a user