Skip to content

Commit

Permalink
Merge pull request #698 from lsdch/fetch-client-export-type
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlubos committed Jun 19, 2024
2 parents 032bd93 + fc2b166 commit 4ded70a
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 4ded70a

Please sign in to comment.