Skip to content

Commit

Permalink
Merge pull request #1467 from hey-api/fix/export-utils
Browse files Browse the repository at this point in the history
fix: export utils
  • Loading branch information
mrlubos authored Dec 19, 2024
2 parents 0d90435 + 3a3f8d7 commit 6dfbd49
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-olives-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hey-api/openapi-ts': patch
---

fix: export utils
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Automatically update your code when the APIs it depends on change. [Find out mor

## Migration Guides

[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen).
[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
2 changes: 1 addition & 1 deletion packages/client-axios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ Automatically update your code when the APIs it depends on change. [Find out mor

## Migration Guides

[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen).
[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
2 changes: 1 addition & 1 deletion packages/client-fetch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ Automatically update your code when the APIs it depends on change. [Find out mor

## Migration Guides

[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen).
[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
2 changes: 1 addition & 1 deletion packages/openapi-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Automatically update your code when the APIs it depends on change. [Find out mor

## Migration Guides

[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen).
[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
7 changes: 2 additions & 5 deletions packages/openapi-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,9 @@ export const defaultPlugins = [
*/
export const defineConfig = (config: UserConfig): UserConfig => config;

export default {
createClient,
defineConfig,
};

export type { IR } from './ir/types';
export type { OpenApi } from './openApi/types';
export type { Plugin } from './plugins/types';
export type { UserConfig } from './types/config';
export type { LegacyIR } from './types/types';
export { utils } from './utils/exports';
5 changes: 5 additions & 0 deletions packages/openapi-ts/src/types/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { Operation } from './client';

export namespace LegacyIR {
export type LegacyOperation = Operation;
}
6 changes: 6 additions & 0 deletions packages/openapi-ts/src/utils/exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { stringCase } from './stringCase';

// publicly exposed utils
export const utils = {
stringCase,
};

0 comments on commit 6dfbd49

Please sign in to comment.