From 3fe6bc1b82a10bed1d907b749b1cc200659df612 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 2 Jun 2020 14:24:44 +1000 Subject: fix: Better use of @ts-expect-error (#6038) --- cli/js/web/fetch.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/js/web/fetch.ts') diff --git a/cli/js/web/fetch.ts b/cli/js/web/fetch.ts index c63fa698f..1f0242a96 100644 --- a/cli/js/web/fetch.ts +++ b/cli/js/web/fetch.ts @@ -187,7 +187,7 @@ function sendFetchReq( } export async function fetch( - input: domTypes.Request | URL | string, + input: (domTypes.Request & { _bodySource?: unknown }) | URL | string, init?: domTypes.RequestInit ): Promise { let url: string; @@ -285,7 +285,6 @@ export async function fetch( method = input.method; headers = input.headers; - //@ts-expect-error if (input._bodySource) { body = new DataView(await input.arrayBuffer()); } -- cgit v1.2.3