We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f25af2 commit cb825fdCopy full SHA for cb825fd
internal/transformers/declarations/transform.go
@@ -573,6 +573,8 @@ func (tx *DeclarationTransformer) transformImportTypeNode(input *ast.ImportTypeN
573
}
574
specifier := tx.rewriteModuleSpecifier(input.AsNode(), input.Argument.AsLiteralTypeNode().Literal)
575
var argument *ast.Node
576
+ // Use pointer equality to check if the specifier changed - rewriteModuleSpecifier
577
+ // returns the same node instance when no rewriting is needed
578
if specifier == input.Argument.AsLiteralTypeNode().Literal {
579
// No change to the specifier, reuse the original argument to avoid creating new nodes
580
argument = input.Argument
0 commit comments