@kubb/plugin-ts 4.0.2 → 4.1.1

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.
@@ -1931,8 +1931,11 @@ function Type({ name, typedName, tree, keysToOmit, schema, optionalType, syntaxT
1931
1931
  void 0
1932
1932
  ].includes(enumType),
1933
1933
  children: (0, __kubb_parser_ts.print)([typeNode])
1934
- })] })), /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
1935
- name,
1934
+ })] })), enums.every((item) => item.typeName !== name) && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
1935
+ name: typedName,
1936
+ isTypeOnly: true,
1937
+ isExportable: true,
1938
+ isIndexable: true,
1936
1939
  children: (0, __kubb_parser_ts.print)(typeNodes)
1937
1940
  })] });
1938
1941
  }
@@ -1956,4 +1959,4 @@ Object.defineProperty(exports, '__toESM', {
1956
1959
  return __toESM;
1957
1960
  }
1958
1961
  });
1959
- //# sourceMappingURL=components-BlMLL1s7.cjs.map
1962
+ //# sourceMappingURL=components-3SwDb74W.cjs.map