Skip to content

Commit

Permalink
fix: export client-facing types again
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlubos committed Sep 25, 2024
1 parent 3865772 commit 45a229a
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-deers-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hey-api/client-fetch': patch
---

fix: export client-facing types again
5 changes: 5 additions & 0 deletions .changeset/silver-frogs-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hey-api/client-axios': patch
---

fix: export client-facing types again
5 changes: 2 additions & 3 deletions packages/client-axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@
"prepublishOnly": "pnpm build",
"test:coverage": "vitest run --coverage",
"test:update": "vitest watch --update",
"test:watch": "vitest watch",
"test": "vitest run",
"typecheck": "tsc --noEmit"
"test": "vitest ${CI:+--run}",
"typecheck": "vitest --typecheck"
},
"peerDependencies": {
"axios": ">= 1.0.0 < 2"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-axios/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const createClient = (config: Config): Client => {
} as Client;
};

export type { Config, Options } from './types';
export type { Client, Config, Options, RequestOptionsBase } from './types';
export {
createConfig,
formDataBodySerializer,
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions packages/client-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"prepublishOnly": "pnpm build",
"test:coverage": "vitest run --coverage",
"test:update": "vitest watch --update",
"test:watch": "vitest watch",
"test": "vitest run",
"typecheck": "tsc --noEmit"
"test": "vitest ${CI:+--run}",
"typecheck": "vitest --typecheck"
}
}
3 changes: 2 additions & 1 deletion packages/client-fetch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ export const createClient = (config: Config = {}): Client => {
};
};

export type { Config, Options } from './types';
export type { Client, Config, Options, RequestOptionsBase } from './types';
export {
createConfig,
formDataBodySerializer,
jsonBodySerializer,
type QuerySerializerOptions,
urlSearchParamsBodySerializer,
} from './utils';
File renamed without changes.

0 comments on commit 45a229a

Please sign in to comment.