@kubb/swagger-ts 2.0.0-beta.7 → 2.0.0-beta.8

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,5 +1,5 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
- import { ResolveNameParams, KubbPlugin, PluginFactoryOptions } from '@kubb/core';
2
+ import { KubbFile, ResolveNameParams, KubbPlugin, PluginFactoryOptions } from '@kubb/core';
3
3
  import { OasTypes, Exclude, Include, Override, ResolvePathOptions, AppMeta as AppMeta$1 } from '@kubb/swagger';
4
4
  import { Pipe, Tuples, Fn, Call, Objects, Booleans, Strings } from 'hotscript';
5
5
  import { JSONSchema, FromSchema } from 'json-schema-to-ts';
@@ -403,6 +403,10 @@ type Options = {
403
403
  * Name to be used for the `export * as {{exportAs}} from './'`
404
404
  */
405
405
  exportAs?: string;
406
+ /**
407
+ * Add an extension to the generated imports and exports, default it will not use an extension
408
+ */
409
+ extName?: KubbFile.Extname;
406
410
  };
407
411
  /**
408
412
  * Group the TypeScript types based on the provided name.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
- import { ResolveNameParams, KubbPlugin, PluginFactoryOptions } from '@kubb/core';
2
+ import { KubbFile, ResolveNameParams, KubbPlugin, PluginFactoryOptions } from '@kubb/core';
3
3
  import { OasTypes, Exclude, Include, Override, ResolvePathOptions, AppMeta as AppMeta$1 } from '@kubb/swagger';
4
4
  import { Pipe, Tuples, Fn, Call, Objects, Booleans, Strings } from 'hotscript';
5
5
  import { JSONSchema, FromSchema } from 'json-schema-to-ts';
@@ -403,6 +403,10 @@ type Options = {
403
403
  * Name to be used for the `export * as {{exportAs}} from './'`
404
404
  */
405
405
  exportAs?: string;
406
+ /**
407
+ * Add an extension to the generated imports and exports, default it will not use an extension
408
+ */
409
+ extName?: KubbFile.Extname;
406
410
  };
407
411
  /**
408
412
  * Group the TypeScript types based on the provided name.
package/dist/index.js CHANGED
@@ -3904,7 +3904,6 @@ var definePlugin = createPlugin((options) => {
3904
3904
  await this.fileManager.addIndexes({
3905
3905
  root,
3906
3906
  output,
3907
- extName: ".ts",
3908
3907
  meta: { pluginKey: this.plugin.key },
3909
3908
  options: {
3910
3909
  isTypeOnly: true