@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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
- import { O as Options, P as PluginTs } from './types-BJ5UjIUu.js';
2
+ import { O as Options, P as PluginTs } from './types-D1yD2jvM.js';
3
3
  import '@kubb/oas';
4
4
  import '@kubb/plugin-oas';
5
5
  import 'typescript';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { pluginTs, pluginTsName } from './chunk-D2MHSJNA.js';
2
- import './chunk-PQDJZQVL.js';
1
+ export { pluginTs, pluginTsName } from './chunk-AYA2SL3G.js';
2
+ import './chunk-2WAGTL4H.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import { PluginFactoryOptions, Output, Group, ResolveNameParams } from '@kubb/core';
1
+ import { Output, Group, ResolveNameParams, PluginFactoryOptions } from '@kubb/core';
2
2
  import { Oas, contentType } from '@kubb/oas';
3
- import { ResolvePathOptions, Exclude, Include, Override, Generator } from '@kubb/plugin-oas';
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 { PluginFactoryOptions, Output, Group, ResolveNameParams } from '@kubb/core';
1
+ import { Output, Group, ResolveNameParams, PluginFactoryOptions } from '@kubb/core';
2
2
  import { Oas, contentType } from '@kubb/oas';
3
- import { ResolvePathOptions, Exclude, Include, Override, Generator } from '@kubb/plugin-oas';
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.5.13",
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.5.13",
62
- "@kubb/fs": "3.5.13",
63
- "@kubb/oas": "3.5.13",
64
- "@kubb/parser-ts": "3.5.13",
65
- "@kubb/plugin-oas": "3.5.13",
66
- "@kubb/react": "3.5.13"
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.3.6",
71
+ "tsup": "^8.4.0",
72
72
  "typescript": "^5.7.3",
73
- "@kubb/config-ts": "3.5.13",
74
- "@kubb/config-tsup": "3.5.13"
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 const enumArrayIdentifierEnum2 = {
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 EnumArrayIdentifierEnum2 = (typeof enumArrayIdentifierEnum2)[keyof typeof enumArrayIdentifierEnum2]
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
+ }
@@ -0,0 +1,8 @@
1
+ export type FooBasetypeEnum2 = 'type-string' | 'type-number'
2
+
3
+ export type fooBase = {
4
+ /**
5
+ * @type string
6
+ */
7
+ $type: FooBasetypeEnum2
8
+ }
@@ -0,0 +1,9 @@
1
+ export type FooNumbertypeEnum2 = 'type-number'
2
+
3
+ export type fooNumber = fooBase & {
4
+ /**
5
+ * @type number
6
+ */
7
+ value: number
8
+ $type: FooNumbertypeEnum2
9
+ }