@openrewrite/rewrite 8.66.0-20251027-112229 → 8.66.0-20251027-133754

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,7 @@ export * from "./preconditions";
23
23
  export * from "./templating";
24
24
  export * from "./method-matcher";
25
25
 
26
+ export * from "./add-import";
26
27
  export * from "./remove-import";
27
28
 
28
29
  import "./print";
@@ -214,7 +214,7 @@ export class JavaScriptTypeMapping {
214
214
  let declaredFormalTypeNames: string[] = [];
215
215
 
216
216
  // Handle different kinds of nodes that represent methods or method invocations
217
- if (ts.isCallExpression(node)) {
217
+ if (ts.isCallOrNewExpression(node)) {
218
218
  // For method invocations (e.g., _.map(...))
219
219
  signature = this.checker.getResolvedSignature(node);
220
220
  if (!signature) {