@kubb/plugin-ts 3.5.13 → 3.6.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.
- package/dist/{chunk-PQDJZQVL.js → chunk-2WAGTL4H.js} +92 -99
- package/dist/chunk-2WAGTL4H.js.map +1 -0
- package/dist/{chunk-T2EDPCDF.cjs → chunk-46QPECUV.cjs} +21 -21
- package/dist/{chunk-T2EDPCDF.cjs.map → chunk-46QPECUV.cjs.map} +1 -1
- package/dist/{chunk-D2MHSJNA.js → chunk-AYA2SL3G.js} +18 -18
- package/dist/{chunk-D2MHSJNA.js.map → chunk-AYA2SL3G.js.map} +1 -1
- package/dist/{chunk-RBSBJS5T.cjs → chunk-TBG2ENOI.cjs} +92 -99
- package/dist/chunk-TBG2ENOI.cjs.map +1 -0
- package/dist/components.cjs +3 -3
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +1 -1
- package/dist/generators.cjs +4 -4
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{types-BJ5UjIUu.d.cts → types-D1yD2jvM.d.cts} +2 -2
- package/dist/{types-BJ5UjIUu.d.ts → types-D1yD2jvM.d.ts} +2 -2
- package/package.json +10 -10
- package/src/generators/__snapshots__/enumArray.ts +2 -14
- package/src/generators/__snapshots__/enumArray20.ts +15 -0
- package/src/generators/__snapshots__/fooBase.ts +8 -0
- package/src/generators/__snapshots__/fooNumber.ts +9 -0
- package/dist/chunk-PQDJZQVL.js.map +0 -1
- package/dist/chunk-RBSBJS5T.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Output, Group, ResolveNameParams, PluginFactoryOptions } from '@kubb/core';
|
|
2
2
|
import { Oas, contentType } from '@kubb/oas';
|
|
3
|
-
import {
|
|
3
|
+
import { Exclude, Include, Override, Generator, ResolvePathOptions } from '@kubb/plugin-oas';
|
|
4
4
|
import ts from 'typescript';
|
|
5
5
|
|
|
6
6
|
type Options = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Output, Group, ResolveNameParams, PluginFactoryOptions } from '@kubb/core';
|
|
2
2
|
import { Oas, contentType } from '@kubb/oas';
|
|
3
|
-
import {
|
|
3
|
+
import { Exclude, Include, Override, Generator, ResolvePathOptions } from '@kubb/plugin-oas';
|
|
4
4
|
import ts from 'typescript';
|
|
5
5
|
|
|
6
6
|
type Options = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-ts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Generator plugin-ts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zod",
|
|
@@ -58,20 +58,20 @@
|
|
|
58
58
|
"!/**/__tests__/**"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@kubb/core": "3.
|
|
62
|
-
"@kubb/fs": "3.
|
|
63
|
-
"@kubb/oas": "3.
|
|
64
|
-
"@kubb/parser-ts": "3.
|
|
65
|
-
"@kubb/plugin-oas": "3.
|
|
66
|
-
"@kubb/react": "3.
|
|
61
|
+
"@kubb/core": "3.6.1",
|
|
62
|
+
"@kubb/fs": "3.6.1",
|
|
63
|
+
"@kubb/oas": "3.6.1",
|
|
64
|
+
"@kubb/parser-ts": "3.6.1",
|
|
65
|
+
"@kubb/plugin-oas": "3.6.1",
|
|
66
|
+
"@kubb/react": "3.6.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/react": "^18.3.18",
|
|
70
70
|
"react": "^18.3.1",
|
|
71
|
-
"tsup": "^8.
|
|
71
|
+
"tsup": "^8.4.0",
|
|
72
72
|
"typescript": "^5.7.3",
|
|
73
|
-
"@kubb/config-ts": "3.
|
|
74
|
-
"@kubb/config-tsup": "3.
|
|
73
|
+
"@kubb/config-ts": "3.6.1",
|
|
74
|
+
"@kubb/config-tsup": "3.6.1"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@kubb/react": "^3.0.0"
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
NW: 'NW',
|
|
3
|
-
NE: 'NE',
|
|
4
|
-
SW: 'SW',
|
|
5
|
-
SE: 'SE',
|
|
6
|
-
} as const
|
|
1
|
+
export type EnumArrayEnum2 = 'NW' | 'NE' | 'SW' | 'SE'
|
|
7
2
|
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
export type enumArray = {
|
|
11
|
-
/**
|
|
12
|
-
* @type array | undefined
|
|
13
|
-
*/
|
|
14
|
-
identifier?: [number, string, EnumArrayIdentifierEnum2]
|
|
15
|
-
}
|
|
3
|
+
export type enumArray = EnumArrayEnum2[]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const enumArrayIdentifierEnum2 = {
|
|
2
|
+
NW: 'NW',
|
|
3
|
+
NE: 'NE',
|
|
4
|
+
SW: 'SW',
|
|
5
|
+
SE: 'SE',
|
|
6
|
+
} as const
|
|
7
|
+
|
|
8
|
+
export type EnumArrayIdentifierEnum2 = (typeof enumArrayIdentifierEnum2)[keyof typeof enumArrayIdentifierEnum2]
|
|
9
|
+
|
|
10
|
+
export type enumArray = {
|
|
11
|
+
/**
|
|
12
|
+
* @type array | undefined
|
|
13
|
+
*/
|
|
14
|
+
identifier?: [number, string, EnumArrayIdentifierEnum2]
|
|
15
|
+
}
|