@kubb/swagger-ts 2.2.1 → 2.3.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/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types-O4pJGBUe.d.cts → types-ZlpJhb2p.d.cts} +1 -1
- package/dist/{types-O4pJGBUe.d.ts → types-ZlpJhb2p.d.ts} +1 -1
- package/package.json +9 -9
- package/src/types.ts +1 -1
package/dist/components.d.cts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OasBuilder } from '@kubb/swagger';
|
2
2
|
import { KubbFile } from '@kubb/core';
|
3
|
-
import { P as PluginOptions } from './types-
|
3
|
+
import { P as PluginOptions } from './types-ZlpJhb2p.cjs';
|
4
4
|
import { ReactNode } from 'react';
|
5
5
|
import { OasTypes } from '@kubb/swagger/oas';
|
6
6
|
|
package/dist/components.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OasBuilder } from '@kubb/swagger';
|
2
2
|
import { KubbFile } from '@kubb/core';
|
3
|
-
import { P as PluginOptions } from './types-
|
3
|
+
import { P as PluginOptions } from './types-ZlpJhb2p.js';
|
4
4
|
import { ReactNode } from 'react';
|
5
5
|
import { OasTypes } from '@kubb/swagger/oas';
|
6
6
|
|
package/dist/index.d.cts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as _kubb_core from '@kubb/core';
|
2
|
-
import { P as PluginOptions, O as Options } from './types-
|
3
|
-
export { F as FileMeta } from './types-
|
2
|
+
import { P as PluginOptions, O as Options } from './types-ZlpJhb2p.cjs';
|
3
|
+
export { F as FileMeta } from './types-ZlpJhb2p.cjs';
|
4
4
|
export { i as Oas } from './index-sycg8owy.cjs';
|
5
5
|
import '@kubb/swagger';
|
6
6
|
import 'hotscript';
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as _kubb_core from '@kubb/core';
|
2
|
-
import { P as PluginOptions, O as Options } from './types-
|
3
|
-
export { F as FileMeta } from './types-
|
2
|
+
import { P as PluginOptions, O as Options } from './types-ZlpJhb2p.js';
|
3
|
+
export { F as FileMeta } from './types-ZlpJhb2p.js';
|
4
4
|
export { i as Oas } from './index-sycg8owy.js';
|
5
5
|
import '@kubb/swagger';
|
6
6
|
import 'hotscript';
|
@@ -56,7 +56,7 @@ type Options = {
|
|
56
56
|
* Choose to use `enum` or `as const` for enums
|
57
57
|
* @default 'asConst'
|
58
58
|
*/
|
59
|
-
enumType?: 'enum' | 'asConst' | 'asPascalConst';
|
59
|
+
enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
|
60
60
|
/**
|
61
61
|
* Choose to use `date` or `datetime` as JavaScript `Date` instead of `string`.
|
62
62
|
* @default 'string'
|
@@ -56,7 +56,7 @@ type Options = {
|
|
56
56
|
* Choose to use `enum` or `as const` for enums
|
57
57
|
* @default 'asConst'
|
58
58
|
*/
|
59
|
-
enumType?: 'enum' | 'asConst' | 'asPascalConst';
|
59
|
+
enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
|
60
60
|
/**
|
61
61
|
* Choose to use `date` or `datetime` as JavaScript `Date` instead of `string`.
|
62
62
|
* @default 'string'
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kubb/swagger-ts",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.3.0",
|
4
4
|
"description": "Generator swagger-ts",
|
5
5
|
"keywords": [
|
6
6
|
"typescript",
|
@@ -49,11 +49,11 @@
|
|
49
49
|
"hotscript": "^1.0.13",
|
50
50
|
"json-schema-to-ts": "^3.0.0",
|
51
51
|
"ts-toolbelt": "^9.6.0",
|
52
|
-
"@kubb/core": "2.
|
53
|
-
"@kubb/parser": "2.
|
54
|
-
"@kubb/react": "2.
|
55
|
-
"@kubb/
|
56
|
-
"@kubb/
|
52
|
+
"@kubb/core": "2.3.0",
|
53
|
+
"@kubb/parser": "2.3.0",
|
54
|
+
"@kubb/react": "2.3.0",
|
55
|
+
"@kubb/types": "2.3.0",
|
56
|
+
"@kubb/swagger": "2.3.0"
|
57
57
|
},
|
58
58
|
"devDependencies": {
|
59
59
|
"@types/react": "^18.2.47",
|
@@ -61,12 +61,12 @@
|
|
61
61
|
"expect-type": "^0.17.3",
|
62
62
|
"react": "^18.2.0",
|
63
63
|
"tsup": "^8.0.1",
|
64
|
-
"@kubb/eslint-config": "1.1.8",
|
65
64
|
"@kubb/ts-config": "0.1.0",
|
66
|
-
"@kubb/tsup-config": "1.1.8"
|
65
|
+
"@kubb/tsup-config": "1.1.8",
|
66
|
+
"@kubb/eslint-config": "1.1.8"
|
67
67
|
},
|
68
68
|
"peerDependencies": {
|
69
|
-
"@kubb/react": "2.
|
69
|
+
"@kubb/react": "2.3.0"
|
70
70
|
},
|
71
71
|
"packageManager": "pnpm@8.3.0",
|
72
72
|
"engines": {
|
package/src/types.ts
CHANGED
@@ -56,7 +56,7 @@ export type Options = {
|
|
56
56
|
* Choose to use `enum` or `as const` for enums
|
57
57
|
* @default 'asConst'
|
58
58
|
*/
|
59
|
-
enumType?: 'enum' | 'asConst' | 'asPascalConst'
|
59
|
+
enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal'
|
60
60
|
/**
|
61
61
|
* Choose to use `date` or `datetime` as JavaScript `Date` instead of `string`.
|
62
62
|
* @default 'string'
|