@hey-api/openapi-ts 0.77.0 → 0.78.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,5 @@
1
+ import { i as Config, I as IR, U as UserConfig, W as WatchValues } from './types.d-DtZlpeRE.cjs';
1
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
- import { e as Config, I as IR, W as WatchValues } from './types.d-CBVwu8Hi.cjs';
3
- export { i as initConfigs } from './types.d-CBVwu8Hi.cjs';
4
3
  import 'node:fs';
5
4
  import 'typescript';
6
5
 
@@ -14,6 +13,14 @@ declare const parseOpenApiSpec: ({ config, spec, }: {
14
13
  spec: unknown;
15
14
  }) => IR.Context | undefined;
16
15
 
16
+ /**
17
+ * @internal
18
+ */
19
+ declare const initConfigs: (userConfig: UserConfig | undefined) => Promise<ReadonlyArray<{
20
+ config: Config;
21
+ errors: ReadonlyArray<Error>;
22
+ }>>;
23
+
17
24
  interface SpecResponse {
18
25
  data: JSONSchema;
19
26
  error?: undefined;
@@ -34,4 +41,4 @@ declare const getSpec: ({ fetchOptions, inputPath, timeout, watch, }: {
34
41
  watch: WatchValues;
35
42
  }) => Promise<SpecResponse | SpecError>;
36
43
 
37
- export { getSpec, parseOpenApiSpec };
44
+ export { getSpec, initConfigs, parseOpenApiSpec };
@@ -1,6 +1,5 @@
1
+ import { i as Config, I as IR, U as UserConfig, W as WatchValues } from './types.d-DtZlpeRE.js';
1
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
- import { e as Config, I as IR, W as WatchValues } from './types.d-CBVwu8Hi.js';
3
- export { i as initConfigs } from './types.d-CBVwu8Hi.js';
4
3
  import 'node:fs';
5
4
  import 'typescript';
6
5
 
@@ -14,6 +13,14 @@ declare const parseOpenApiSpec: ({ config, spec, }: {
14
13
  spec: unknown;
15
14
  }) => IR.Context | undefined;
16
15
 
16
+ /**
17
+ * @internal
18
+ */
19
+ declare const initConfigs: (userConfig: UserConfig | undefined) => Promise<ReadonlyArray<{
20
+ config: Config;
21
+ errors: ReadonlyArray<Error>;
22
+ }>>;
23
+
17
24
  interface SpecResponse {
18
25
  data: JSONSchema;
19
26
  error?: undefined;
@@ -34,4 +41,4 @@ declare const getSpec: ({ fetchOptions, inputPath, timeout, watch, }: {
34
41
  watch: WatchValues;
35
42
  }) => Promise<SpecResponse | SpecError>;
36
43
 
37
- export { getSpec, parseOpenApiSpec };
44
+ export { getSpec, initConfigs, parseOpenApiSpec };
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createRequire}from'module';export{r as getSpec,I as initConfigs,B as parseOpenApiSpec}from'./chunk-EH476QS3.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{I as getSpec,H as initConfigs,F as parseOpenApiSpec}from'./chunk-4AJU36PO.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map