@hey-api/openapi-ts 0.68.1 → 0.69.0

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-Il3OF6kK.cjs';
3
- export { i as initConfigs } from './types.d-Il3OF6kK.cjs';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-DaUN4Gwe.cjs';
3
+ export { i as initConfigs } from './types.d-DaUN4Gwe.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-Il3OF6kK.js';
3
- export { i as initConfigs } from './types.d-Il3OF6kK.js';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-DaUN4Gwe.js';
3
+ export { i as initConfigs } from './types.d-DaUN4Gwe.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-TUGP7QO5.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-ALAAQACG.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -7889,6 +7889,12 @@ declare class IRContext<Spec extends Record<string, any> = any> {
7889
7889
  * to the newly created file.
7890
7890
  */
7891
7891
  createFile(file: ContextFile): TypeScriptFile;
7892
+ /**
7893
+ * Returns a resolved and dereferenced schema from `spec`.
7894
+ */
7895
+ dereference<T>(schema: {
7896
+ $ref: string;
7897
+ }): T;
7892
7898
  /**
7893
7899
  * Returns a specific file by ID from `files`.
7894
7900
  */
@@ -7889,6 +7889,12 @@ declare class IRContext<Spec extends Record<string, any> = any> {
7889
7889
  * to the newly created file.
7890
7890
  */
7891
7891
  createFile(file: ContextFile): TypeScriptFile;
7892
+ /**
7893
+ * Returns a resolved and dereferenced schema from `spec`.
7894
+ */
7895
+ dereference<T>(schema: {
7896
+ $ref: string;
7897
+ }): T;
7892
7898
  /**
7893
7899
  * Returns a specific file by ID from `files`.
7894
7900
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.68.1",
3
+ "version": "0.69.0",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {
@@ -97,8 +97,8 @@
97
97
  "ts-node": "10.9.2",
98
98
  "tslib": "2.8.1",
99
99
  "typescript": "5.8.3",
100
- "@hey-api/client-core": "0.1.4",
101
- "@config/vite-base": "0.0.1"
100
+ "@config/vite-base": "0.0.1",
101
+ "@hey-api/client-core": "0.1.4"
102
102
  },
103
103
  "scripts": {
104
104
  "build": "tsup && pnpm check-exports",