@hey-api/openapi-ts 0.66.7 → 0.67.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.
@@ -1,6 +1,6 @@
1
1
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
- import { c as Config, I as IR, W as WatchValues } from './types.d-QZmuYCzm.cjs';
3
- export { i as initConfigs } from './types.d-QZmuYCzm.cjs';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-C5lgdIHG.cjs';
3
+ export { i as initConfigs } from './types.d-C5lgdIHG.cjs';
4
4
  import 'node:fs';
5
5
  import 'typescript';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
- import { c as Config, I as IR, W as WatchValues } from './types.d-QZmuYCzm.js';
3
- export { i as initConfigs } from './types.d-QZmuYCzm.js';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-C5lgdIHG.js';
3
+ export { i as initConfigs } from './types.d-C5lgdIHG.js';
4
4
  import 'node:fs';
5
5
  import 'typescript';
6
6
 
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-AORBOYHR.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-SVVHOGRR.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -7395,6 +7395,13 @@ interface UserConfig {
7395
7395
  * The relative location of the output folder
7396
7396
  */
7397
7397
  path: string;
7398
+ /**
7399
+ * Relative or absolute path to the tsconfig file we should use to
7400
+ * generate the output. If a path to tsconfig file is not provided, we
7401
+ * attempt to find one starting from the location of the
7402
+ * `@hey-api/openapi-ts` configuration file and traversing up.
7403
+ */
7404
+ tsConfigPath?: 'off' | (string & {});
7398
7405
  };
7399
7406
  /**
7400
7407
  * Plugins generate artifacts from `input`. By default, we generate SDK
@@ -7614,8 +7621,8 @@ declare class TypeScriptFile {
7614
7621
  */
7615
7622
  removeNode(): void;
7616
7623
  private _setName;
7617
- toString(separator?: string): string;
7618
- write(separator?: string): void;
7624
+ private _toString;
7625
+ write(separator?: string, tsConfig?: ts.ParsedCommandLine | null): void;
7619
7626
  }
7620
7627
  interface EnsureUniqueIdentifierData {
7621
7628
  $ref: string;
@@ -7395,6 +7395,13 @@ interface UserConfig {
7395
7395
  * The relative location of the output folder
7396
7396
  */
7397
7397
  path: string;
7398
+ /**
7399
+ * Relative or absolute path to the tsconfig file we should use to
7400
+ * generate the output. If a path to tsconfig file is not provided, we
7401
+ * attempt to find one starting from the location of the
7402
+ * `@hey-api/openapi-ts` configuration file and traversing up.
7403
+ */
7404
+ tsConfigPath?: 'off' | (string & {});
7398
7405
  };
7399
7406
  /**
7400
7407
  * Plugins generate artifacts from `input`. By default, we generate SDK
@@ -7614,8 +7621,8 @@ declare class TypeScriptFile {
7614
7621
  */
7615
7622
  removeNode(): void;
7616
7623
  private _setName;
7617
- toString(separator?: string): string;
7618
- write(separator?: string): void;
7624
+ private _toString;
7625
+ write(separator?: string, tsConfig?: ts.ParsedCommandLine | null): void;
7619
7626
  }
7620
7627
  interface EnsureUniqueIdentifierData {
7621
7628
  $ref: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.66.7",
3
+ "version": "0.67.1",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {