breeze-bindgen 1.1.9 → 1.1.10

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/dist/cli.mjs CHANGED
@@ -387,7 +387,7 @@ export class ${tsClassName}${bases.length > 0 ? ` extends ${bases.map((base) =>
387
387
  ${fieldDef.trim()}`;
388
388
  });
389
389
  methods.forEach((method) => {
390
- let methodDef = `${method.static ? "static " : ""}${method.name}(${method.argNames && method.argNames.length > 0 ? method.args.map((arg, i) => `${method.argNames[i] || `arg${i}`}: ${cTypeToTypeScript(arg, nameFilter)}`).join(", ") : ""}): ${cTypeToTypeScript(method.returnType, nameFilter)}`;
390
+ let methodDef = `${method.static ? "static " : ""}${method.name}(${method.argNames && method.argNames.length > 0 ? method.args.map((arg, i) => `${method.argNames[i] || `arg${i}`}${arg.startsWith("std::optional") ? "?" : ""}: ${cTypeToTypeScript(arg, nameFilter)}`).join(", ") : ""}): ${cTypeToTypeScript(method.returnType, nameFilter)}`;
391
391
  let comments = "";
392
392
  if (method.comment) comments += method.comment;
393
393
  if (comments || method.argNames && method.argNames.length > 0) {
package/dist/core.cjs CHANGED
@@ -597,7 +597,7 @@ export class ${tsClassName}${bases.length > 0 ? ` extends ${bases.map((base) =>
597
597
  ${fieldDef.trim()}`;
598
598
  });
599
599
  methods.forEach((method) => {
600
- let methodDef = `${method.static ? "static " : ""}${method.name}(${method.argNames && method.argNames.length > 0 ? method.args.map((arg, i) => `${method.argNames[i] || `arg${i}`}: ${cTypeToTypeScript(arg, nameFilter)}`).join(", ") : ""}): ${cTypeToTypeScript(method.returnType, nameFilter)}`;
600
+ let methodDef = `${method.static ? "static " : ""}${method.name}(${method.argNames && method.argNames.length > 0 ? method.args.map((arg, i) => `${method.argNames[i] || `arg${i}`}${arg.startsWith("std::optional") ? "?" : ""}: ${cTypeToTypeScript(arg, nameFilter)}`).join(", ") : ""}): ${cTypeToTypeScript(method.returnType, nameFilter)}`;
601
601
  let comments = "";
602
602
  if (method.comment) comments += method.comment;
603
603
  if (comments || method.argNames && method.argNames.length > 0) {
package/dist/core.mjs CHANGED
@@ -593,7 +593,7 @@ export class ${tsClassName}${bases.length > 0 ? ` extends ${bases.map((base) =>
593
593
  ${fieldDef.trim()}`;
594
594
  });
595
595
  methods.forEach((method) => {
596
- let methodDef = `${method.static ? "static " : ""}${method.name}(${method.argNames && method.argNames.length > 0 ? method.args.map((arg, i) => `${method.argNames[i] || `arg${i}`}: ${cTypeToTypeScript(arg, nameFilter)}`).join(", ") : ""}): ${cTypeToTypeScript(method.returnType, nameFilter)}`;
596
+ let methodDef = `${method.static ? "static " : ""}${method.name}(${method.argNames && method.argNames.length > 0 ? method.args.map((arg, i) => `${method.argNames[i] || `arg${i}`}${arg.startsWith("std::optional") ? "?" : ""}: ${cTypeToTypeScript(arg, nameFilter)}`).join(", ") : ""}): ${cTypeToTypeScript(method.returnType, nameFilter)}`;
597
597
  let comments = "";
598
598
  if (method.comment) comments += method.comment;
599
599
  if (comments || method.argNames && method.argNames.length > 0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
3
3
  "name": "breeze-bindgen",
4
- "version": "1.1.9",
4
+ "version": "1.1.10",
5
5
  "main": "dist/core.cjs",
6
6
  "module": "dist/core.mjs",
7
7
  "types": "dist/core.d.ts",