Skip to content

Commit

Permalink
feat: export type RequestResult of fetch client
Browse files Browse the repository at this point in the history
  • Loading branch information
lsdch committed Jun 19, 2024
1 parent 032bd93 commit fc2b166
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-months-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hey-api/client-fetch': patch
---

export RequestResult type
2 changes: 1 addition & 1 deletion packages/client-fetch/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ interface RequestOptionsBase extends Omit<Config, 'global'> {
url: string;
}

type RequestResult<Data = unknown, Error = unknown> = Promise<
export type RequestResult<Data = unknown, Error = unknown> = Promise<
({ data: Data; error: undefined } | { data: undefined; error: Error }) & {
request: Request;
response: Response;
Expand Down

0 comments on commit fc2b166

Please sign in to comment.