Skip to content

Commit

Permalink
fix: export RequestResult type
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlubos committed Sep 26, 2024
1 parent 79e52b5 commit 7f986c2
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/modern-queens-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hey-api/client-axios': patch
'@hey-api/client-fetch': patch
---

fix: export RequestResult type
8 changes: 7 additions & 1 deletion packages/client-axios/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ export const createClient = (config: Config): Client => {
} as Client;
};

export type { Client, Config, Options, RequestOptionsBase } from './types';
export type {
Client,
Config,
Options,
RequestOptionsBase,
RequestResult,
} from './types';
export {
createConfig,
formDataBodySerializer,
Expand Down
8 changes: 7 additions & 1 deletion packages/client-fetch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ export const createClient = (config: Config = {}): Client => {
};
};

export type { Client, Config, Options, RequestOptionsBase } from './types';
export type {
Client,
Config,
Options,
RequestOptionsBase,
RequestResult,
} from './types';
export {
createConfig,
formDataBodySerializer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ export const createClient = (config: Config): Client => {
} as Client;
};

export type { Client, Config, Options, RequestOptionsBase } from './types';
export type {
Client,
Config,
Options,
RequestOptionsBase,
RequestResult,
} from './types';
export {
createConfig,
formDataBodySerializer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ export const createClient = (config: Config): Client => {
} as Client;
};

export type { Client, Config, Options, RequestOptionsBase } from './types';
export type {
Client,
Config,
Options,
RequestOptionsBase,
RequestResult,
} from './types';
export {
createConfig,
formDataBodySerializer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ export const createClient = (config: Config = {}): Client => {
};
};

export type { Client, Config, Options, RequestOptionsBase } from './types';
export type {
Client,
Config,
Options,
RequestOptionsBase,
RequestResult,
} from './types';
export {
createConfig,
formDataBodySerializer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ export const createClient = (config: Config = {}): Client => {
};
};

export type { Client, Config, Options, RequestOptionsBase } from './types';
export type {
Client,
Config,
Options,
RequestOptionsBase,
RequestResult,
} from './types';
export {
createConfig,
formDataBodySerializer,
Expand Down

0 comments on commit 7f986c2

Please sign in to comment.