@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.
@@ -1,5 +1,5 @@
1
1
  import { ResolvePathOptions, Exclude, Include, Override, AppMeta as AppMeta$1, OasBuilder, OasTypes } from '@kubb/swagger';
2
- import { PluginFactoryOptions, ResolveNameParams, KubbFile } from '@kubb/core';
2
+ import { PluginFactoryOptions, KubbFile, ResolveNameParams } from '@kubb/core';
3
3
  import { ReactNode } from 'react';
4
4
 
5
5
  type Options = {
@@ -14,6 +14,10 @@ type Options = {
14
14
  * Name to be used for the `export * as {{exportAs}} from './'`
15
15
  */
16
16
  exportAs?: string;
17
+ /**
18
+ * Add an extension to the generated imports and exports, default it will not use an extension
19
+ */
20
+ extName?: KubbFile.Extname;
17
21
  };
18
22
  /**
19
23
  * Group the TypeScript types based on the provided name.
@@ -1,5 +1,5 @@
1
1
  import { ResolvePathOptions, Exclude, Include, Override, AppMeta as AppMeta$1, OasBuilder, OasTypes } from '@kubb/swagger';
2
- import { PluginFactoryOptions, ResolveNameParams, KubbFile } from '@kubb/core';
2
+ import { PluginFactoryOptions, KubbFile, ResolveNameParams } from '@kubb/core';
3
3
  import { ReactNode } from 'react';
4
4
 
5
5
  type Options = {
@@ -14,6 +14,10 @@ type Options = {
14
14
  * Name to be used for the `export * as {{exportAs}} from './'`
15
15
  */
16
16
  exportAs?: string;
17
+ /**
18
+ * Add an extension to the generated imports and exports, default it will not use an extension
19
+ */
20
+ extName?: KubbFile.Extname;
17
21
  };
18
22
  /**
19
23
  * Group the TypeScript types based on the provided name.
@@ -3487,7 +3487,6 @@ createPlugin((options) => {
3487
3487
  await this.fileManager.addIndexes({
3488
3488
  root,
3489
3489
  output,
3490
- extName: ".ts",
3491
3490
  meta: { pluginKey: this.plugin.key },
3492
3491
  options: {
3493
3492
  isTypeOnly: true