@kubb/plugin-ts 3.17.0 → 3.18.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.
@@ -1,4 +1,4 @@
1
- import { OasTypes, PluginTs, Schema, SchemaObject } from "./types-BL0qEGbB.cjs";
1
+ import { OasTypes, PluginTs, Schema, SchemaObject } from "./types-Bnh-xEll.cjs";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/components/OasType.d.ts
@@ -1,4 +1,4 @@
1
- import { OasTypes, PluginTs, Schema, SchemaObject } from "./types-DFDnGwpy.js";
1
+ import { OasTypes, PluginTs, Schema, SchemaObject } from "./types-BWn5y2Wo.js";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/components/OasType.d.ts
@@ -1,4 +1,4 @@
1
- import { Generator, PluginTs } from "./types-BL0qEGbB.cjs";
1
+ import { Generator, PluginTs } from "./types-Bnh-xEll.cjs";
2
2
 
3
3
  //#region src/generators/typeGenerator.d.ts
4
4
  declare const typeGenerator: Generator<PluginTs>;
@@ -1,4 +1,4 @@
1
- import { Generator, PluginTs } from "./types-DFDnGwpy.js";
1
+ import { Generator, PluginTs } from "./types-BWn5y2Wo.js";
2
2
 
3
3
  //#region src/generators/typeGenerator.d.ts
4
4
  declare const typeGenerator: Generator<PluginTs>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginTs, UserPluginWithLifeCycle } from "./types-BL0qEGbB.cjs";
1
+ import { Options, PluginTs, UserPluginWithLifeCycle } from "./types-Bnh-xEll.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginTsName = "plugin-ts";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginTs, UserPluginWithLifeCycle } from "./types-DFDnGwpy.js";
1
+ import { Options, PluginTs, UserPluginWithLifeCycle } from "./types-BWn5y2Wo.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginTsName = "plugin-ts";
@@ -271,6 +271,27 @@ type Config<TInput = Input> = {
271
271
  * @default true
272
272
  */
273
273
  write?: boolean;
274
+ /**
275
+ * Specifies the formatting tool to be used.
276
+ * @default prettier
277
+ *
278
+ * Possible values:
279
+ * - 'prettier': Uses Prettier for code formatting.
280
+ * - 'biome': Uses Biome for code formatting.
281
+ *
282
+ */
283
+ format?: 'prettier' | 'biome' | false;
284
+ /**
285
+ * Specifies the linter that should be used to analyze the code.
286
+ * The accepted values indicate different linting tools.
287
+ *
288
+ * Possible values:
289
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
290
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
291
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
292
+ *
293
+ */
294
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
274
295
  /**
275
296
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
276
297
  * @default { '.ts': '.ts'}
@@ -1220,4 +1241,4 @@ type ResolvedOptions = {
1220
1241
  type PluginTs = PluginFactoryOptions<'plugin-ts', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1221
1242
  //#endregion
1222
1243
  export { Generator, type OasTypes, Options$1 as Options, PluginTs, Schema, SchemaObject$1 as SchemaObject, UserPluginWithLifeCycle };
1223
- //# sourceMappingURL=types-BL0qEGbB.d.cts.map
1244
+ //# sourceMappingURL=types-BWn5y2Wo.d.ts.map
@@ -271,6 +271,27 @@ type Config<TInput = Input> = {
271
271
  * @default true
272
272
  */
273
273
  write?: boolean;
274
+ /**
275
+ * Specifies the formatting tool to be used.
276
+ * @default prettier
277
+ *
278
+ * Possible values:
279
+ * - 'prettier': Uses Prettier for code formatting.
280
+ * - 'biome': Uses Biome for code formatting.
281
+ *
282
+ */
283
+ format?: 'prettier' | 'biome' | false;
284
+ /**
285
+ * Specifies the linter that should be used to analyze the code.
286
+ * The accepted values indicate different linting tools.
287
+ *
288
+ * Possible values:
289
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
290
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
291
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
292
+ *
293
+ */
294
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
274
295
  /**
275
296
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
276
297
  * @default { '.ts': '.ts'}
@@ -1220,4 +1241,4 @@ type ResolvedOptions = {
1220
1241
  type PluginTs = PluginFactoryOptions<'plugin-ts', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1221
1242
  //#endregion
1222
1243
  export { Generator, type OasTypes, Options$1 as Options, PluginTs, Schema, SchemaObject$1 as SchemaObject, UserPluginWithLifeCycle };
1223
- //# sourceMappingURL=types-DFDnGwpy.d.ts.map
1244
+ //# sourceMappingURL=types-Bnh-xEll.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-ts",
3
- "version": "3.17.0",
3
+ "version": "3.18.0",
4
4
  "description": "TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -57,19 +57,19 @@
57
57
  "!/**/__tests__/**"
58
58
  ],
59
59
  "dependencies": {
60
- "@kubb/core": "3.17.0",
61
- "@kubb/oas": "3.17.0",
62
- "@kubb/parser-ts": "3.17.0",
63
- "@kubb/plugin-oas": "3.17.0",
64
- "@kubb/react": "3.17.0"
60
+ "@kubb/core": "3.18.0",
61
+ "@kubb/oas": "3.18.0",
62
+ "@kubb/parser-ts": "3.18.0",
63
+ "@kubb/plugin-oas": "3.18.0",
64
+ "@kubb/react": "3.18.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/react": "^18.3.23",
68
68
  "react": "^18.3.1",
69
69
  "tsdown": "^0.14.1",
70
70
  "typescript": "^5.9.2",
71
- "@kubb/config-ts": "3.17.0",
72
- "@kubb/plugin-oas": "3.17.0"
71
+ "@kubb/config-ts": "3.18.0",
72
+ "@kubb/plugin-oas": "3.18.0"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "@kubb/react": "^3.0.0"