@kubb/swagger-ts 2.0.0-beta.7 → 2.0.0-beta.9

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.cjs CHANGED
@@ -3633,7 +3633,7 @@ function Template({
3633
3633
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
3634
3634
  `export const ${name} = ${JSON.stringify(api, void 0, 2)} as const`,
3635
3635
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("br", {}),
3636
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.Type, { name: typeName, export: true, children: `Parse<typeof ${name}>` })
3636
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.Type, { name: typeName, export: true, children: `Infer<typeof ${name}>` })
3637
3637
  ] });
3638
3638
  }
3639
3639
  var defaultTemplates = { default: Template };
@@ -3656,7 +3656,7 @@ Oas.File = function({ name, typeName, templates = defaultTemplates }) {
3656
3656
  path: file.path,
3657
3657
  meta: file.meta,
3658
3658
  children: [
3659
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.File.Import, { name: ["Parse"], path: "@kubb/swagger-ts/infer", isTypeOnly: true }),
3659
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.File.Import, { name: ["Infer"], path: "@kubb/swagger-ts/oas", isTypeOnly: true }),
3660
3660
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.File.Source, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Oas, { Template: Template2, name, typeName }) })
3661
3661
  ]
3662
3662
  }
@@ -3928,7 +3928,6 @@ var definePlugin = core.createPlugin((options) => {
3928
3928
  await this.fileManager.addIndexes({
3929
3929
  root,
3930
3930
  output,
3931
- extName: ".ts",
3932
3931
  meta: { pluginKey: this.plugin.key },
3933
3932
  options: {
3934
3933
  isTypeOnly: true
@@ -3941,8 +3940,8 @@ var definePlugin = core.createPlugin((options) => {
3941
3940
  // src/types.ts
3942
3941
  init_cjs_shims();
3943
3942
 
3944
- // src/infer/index.ts
3945
- var infer_exports = {};
3943
+ // src/oas/index.ts
3944
+ var oas_exports = {};
3946
3945
  init_cjs_shims();
3947
3946
 
3948
3947
  // src/index.ts
@@ -3994,7 +3993,7 @@ react/cjs/react-jsx-runtime.development.js:
3994
3993
  *)
3995
3994
  */
3996
3995
 
3997
- exports.Infer = infer_exports;
3996
+ exports.Oas = oas_exports;
3998
3997
  exports.default = src_default;
3999
3998
  exports.definePlugin = definePlugin;
4000
3999
  exports.pluginKey = pluginKey;