datagrok-tools 4.14.26 → 4.14.28
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.
package/package.json
CHANGED
|
@@ -253,7 +253,7 @@ class FuncGeneratorPlugin {
|
|
|
253
253
|
let params =
|
|
254
254
|
baseParam.typeAnnotation.typeAnnotation.typeArguments?.params;
|
|
255
255
|
if (type !== "any" && params && params.length > 0)
|
|
256
|
-
type += `<${params.map((e) => e.typeName
|
|
256
|
+
type += `<${params.map((e) => e.typeName?.name ?? 'any').join(",")}>`;
|
|
257
257
|
|
|
258
258
|
return { name: name, type: type, options: options };
|
|
259
259
|
}
|
|
@@ -460,7 +460,7 @@ class FuncGeneratorPlugin {
|
|
|
460
460
|
} else
|
|
461
461
|
fs.writeFileSync(
|
|
462
462
|
this.options.outputPath,
|
|
463
|
-
`${baseImport}\n${importArray.join("")}`,
|
|
463
|
+
`${annotationForGeneratedFile}${baseImport}\n${importArray.join("")}`,
|
|
464
464
|
"utf-8"
|
|
465
465
|
);
|
|
466
466
|
}
|