Skip to content

Commit

Permalink
Merge pull request #1092 from hey-api/fix/client-export-request-result
Browse files Browse the repository at this point in the history
fix: export RequestResult type
  • Loading branch information
mrlubos authored Sep 26, 2024
2 parents 79e52b5 + 7f986c2 commit 2518924
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 2518924

Please sign in to comment.