@kubb/swagger-ts 2.0.0-beta.3 → 2.0.0-beta.5

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.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
2
  import { ResolveNameParams, KubbPlugin, PluginFactoryOptions } from '@kubb/core';
3
- import { Exclude, Include, Override, ResolvePathOptions } from '@kubb/swagger';
3
+ import { Exclude, Include, Override, ResolvePathOptions, AppMeta as AppMeta$1 } from '@kubb/swagger';
4
4
 
5
5
  type Options = {
6
6
  /**
@@ -67,12 +67,20 @@ type Options = {
67
67
  name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
68
68
  };
69
69
  };
70
+ type ResolvedOptions = {
71
+ enumType: NonNullable<Options['enumType']>;
72
+ dateType: NonNullable<Options['dateType']>;
73
+ optionalType: NonNullable<Options['optionalType']>;
74
+ transformers: NonNullable<Options['transformers']>;
75
+ usedEnumNames: Record<string, number>;
76
+ };
70
77
  type FileMeta = {
71
78
  pluginKey?: KubbPlugin['key'];
72
79
  name?: string;
73
80
  tag?: string;
74
81
  };
75
- type PluginOptions = PluginFactoryOptions<'swagger-ts', Options, Options, never, ResolvePathOptions>;
82
+ type AppMeta = AppMeta$1;
83
+ type PluginOptions = PluginFactoryOptions<'swagger-ts', Options, ResolvedOptions, never, ResolvePathOptions, AppMeta>;
76
84
  declare module '@kubb/core' {
77
85
  interface _Register {
78
86
  ['@kubb/swagger-ts']: PluginOptions;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
2
  import { ResolveNameParams, KubbPlugin, PluginFactoryOptions } from '@kubb/core';
3
- import { Exclude, Include, Override, ResolvePathOptions } from '@kubb/swagger';
3
+ import { Exclude, Include, Override, ResolvePathOptions, AppMeta as AppMeta$1 } from '@kubb/swagger';
4
4
 
5
5
  type Options = {
6
6
  /**
@@ -67,12 +67,20 @@ type Options = {
67
67
  name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
68
68
  };
69
69
  };
70
+ type ResolvedOptions = {
71
+ enumType: NonNullable<Options['enumType']>;
72
+ dateType: NonNullable<Options['dateType']>;
73
+ optionalType: NonNullable<Options['optionalType']>;
74
+ transformers: NonNullable<Options['transformers']>;
75
+ usedEnumNames: Record<string, number>;
76
+ };
70
77
  type FileMeta = {
71
78
  pluginKey?: KubbPlugin['key'];
72
79
  name?: string;
73
80
  tag?: string;
74
81
  };
75
- type PluginOptions = PluginFactoryOptions<'swagger-ts', Options, Options, never, ResolvePathOptions>;
82
+ type AppMeta = AppMeta$1;
83
+ type PluginOptions = PluginFactoryOptions<'swagger-ts', Options, ResolvedOptions, never, ResolvePathOptions, AppMeta>;
76
84
  declare module '@kubb/core' {
77
85
  interface _Register {
78
86
  ['@kubb/swagger-ts']: PluginOptions;