@kubb/plugin-ts 5.0.7 → 5.0.8

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/OVERVIEW.md ADDED
@@ -0,0 +1,17 @@
1
+ # TypeScript
2
+
3
+ Generates TypeScript types and interfaces from your OpenAPI spec. You get a type for every schema, plus the request, response, and parameter types of each operation.
4
+
5
+ Most other Kubb plugins build on these types. The client, query, mock, and test plugins import them, so add this plugin first.
6
+
7
+ ## Setup
8
+
9
+ No other plugins or packages are needed.
10
+
11
+ ## Options worth knowing
12
+
13
+ - `enum.type` sets how enums are written: `asConst` (default), `enum`, `constEnum`, `literal`, or `inlineLiteral`. `enum.constCasing`, `enum.typeSuffix`, and `enum.keyCasing` tune the names.
14
+ - `syntaxType` writes object schemas as `type` aliases (default) or `interface` declarations.
15
+ - `optionalType` sets how optional properties are written: `questionToken` (default), `undefined`, or `questionTokenAndUndefined`.
16
+ - `arrayType` writes arrays as `T[]` (default) or `Array<T>`.
17
+ - `group` splits the output into folders by tag or path. It does not work with `output.mode: 'file'`.
package/dist/index.cjs CHANGED
@@ -1850,8 +1850,14 @@ const typeGenerator = (0, kubb_kit.defineGenerator)({
1850
1850
  }
1851
1851
  });
1852
1852
  //#endregion
1853
+ //#region kubb-extension.json
1854
+ var compatibility = {
1855
+ "kubb": ">=5.8.0",
1856
+ "node": ">=22"
1857
+ };
1858
+ //#endregion
1853
1859
  //#region package.json
1854
- var version = "5.0.7";
1860
+ var version = "5.0.8";
1855
1861
  //#endregion
1856
1862
  //#region src/resolvers/resolverTs.ts
1857
1863
  /**
@@ -1972,7 +1978,7 @@ const pluginTs = (0, kubb_kit.definePlugin)({
1972
1978
  meta: {
1973
1979
  name: pluginTsName,
1974
1980
  version,
1975
- compatibility: { kubb: ">=5.8.0" }
1981
+ compatibility
1976
1982
  },
1977
1983
  setup(options) {
1978
1984
  const { output = {