@kubb/core 0.42.1 → 0.43.0

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/index.d.ts CHANGED
@@ -189,7 +189,7 @@ declare const read: (path: string) => Promise<string>;
189
189
  type Import = {
190
190
  name: string | string[];
191
191
  path: string;
192
- type?: boolean;
192
+ isTypeOnly?: boolean;
193
193
  };
194
194
  type File = {
195
195
  /**
@@ -17221,10 +17221,10 @@ var kubb = (function (exports) {
17221
17221
  const importSource = imports.reduce((prev, curr) => {
17222
17222
  if (Array.isArray(curr.name)) {
17223
17223
  return `${prev}
17224
- import ${curr.type ? "type " : ""}{ ${curr.name.join(",")} } from "${curr.path}";`;
17224
+ import ${curr.isTypeOnly ? "type " : ""}{ ${curr.name.join(",")} } from "${curr.path}";`;
17225
17225
  }
17226
17226
  return `${prev}
17227
- import ${curr.type ? "type " : ""}${curr.name} from "${curr.path}";`;
17227
+ import ${curr.isTypeOnly ? "type " : ""}${curr.name} from "${curr.path}";`;
17228
17228
  }, "");
17229
17229
  if (importSource) {
17230
17230
  return `${importSource}