From 394b6e0572e7a0a92e103e462a7f603f7d569319 Mon Sep 17 00:00:00 2001 From: Roojay Date: Thu, 24 Jun 2021 20:38:29 +0800 Subject: [PATCH] fix(api): http `ResponseType` export type error (#2065) Co-authored-by: Lucas Nogueira --- .changes/api-export-type-fix.md | 5 +++++ tooling/api/src/http.ts | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changes/api-export-type-fix.md diff --git a/.changes/api-export-type-fix.md b/.changes/api-export-type-fix.md new file mode 100644 index 00000000000..8c871e80ce7 --- /dev/null +++ b/.changes/api-export-type-fix.md @@ -0,0 +1,5 @@ +--- +"api": patch +--- + +Export `Response` and `ResponseType` as value instead of type. diff --git a/tooling/api/src/http.ts b/tooling/api/src/http.ts index 64dac138607..9975b587d2f 100644 --- a/tooling/api/src/http.ts +++ b/tooling/api/src/http.ts @@ -348,13 +348,11 @@ async function fetch( export type { ClientOptions, - ResponseType, Part, HttpVerb, HttpOptions, RequestOptions, - FetchOptions, - Response + FetchOptions } -export { getClient, fetch, Body, Client } +export { getClient, fetch, Body, Client, Response, ResponseType }