Skip to content

Commit

Permalink
fix(api): http ResponseType export type error (#2065)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
roojay520 and lucasfernog committed Jun 24, 2021
1 parent ad34151 commit 394b6e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changes/api-export-type-fix.md
@@ -0,0 +1,5 @@
---
"api": patch
---

Export `Response` and `ResponseType` as value instead of type.
6 changes: 2 additions & 4 deletions tooling/api/src/http.ts
Expand Up @@ -348,13 +348,11 @@ async function fetch<T>(

export type {
ClientOptions,
ResponseType,
Part,
HttpVerb,
HttpOptions,
RequestOptions,
FetchOptions,
Response
FetchOptions
}

export { getClient, fetch, Body, Client }
export { getClient, fetch, Body, Client, Response, ResponseType }

0 comments on commit 394b6e0

Please sign in to comment.