From 5d866161f86fa48e841f5840df8ff47855338697 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 20 Aug 2018 21:03:11 -0400 Subject: [PATCH] Fix TS errors in fetch.ts --- js/fetch.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/fetch.ts b/js/fetch.ts index 599d02baf5..3bc6052218 100644 --- a/js/fetch.ts +++ b/js/fetch.ts @@ -81,12 +81,14 @@ class FetchResponse implements Response { return this.bodyWaiter; } - blob(): Promise { + async blob(): Promise { notImplemented(); + return {} as Blob; } - formData(): Promise { + async formData(): Promise { notImplemented(); + return {} as FormData; } async json(): Promise { @@ -106,6 +108,7 @@ class FetchResponse implements Response { clone(): Response { notImplemented(); + return {} as Response; } onHeader?: (res: FetchResponse) => void;