Skip to content

Commit 394b6e0

Browse files
fix(api): http ResponseType export type error (#2065)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent ad34151 commit 394b6e0

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.changes/api-export-type-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
Export `Response` and `ResponseType` as value instead of type.

tooling/api/src/http.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,11 @@ async function fetch<T>(
348348

349349
export type {
350350
ClientOptions,
351-
ResponseType,
352351
Part,
353352
HttpVerb,
354353
HttpOptions,
355354
RequestOptions,
356-
FetchOptions,
357-
Response
355+
FetchOptions
358356
}
359357

360-
export { getClient, fetch, Body, Client }
358+
export { getClient, fetch, Body, Client, Response, ResponseType }

0 commit comments

Comments
 (0)