diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-08-20 21:03:11 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-20 21:20:15 -0400 |
commit | 5d866161f86fa48e841f5840df8ff47855338697 (patch) | |
tree | 5a79ba8ebeec7cdace01d058b816be84ef08697a /js/fetch.ts | |
parent | 868e8d88662ad5691212afc733e83f5de1c0979d (diff) |
Fix TS errors in fetch.ts
Diffstat (limited to 'js/fetch.ts')
-rw-r--r-- | js/fetch.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/fetch.ts b/js/fetch.ts index 599d02baf..3bc605221 100644 --- a/js/fetch.ts +++ b/js/fetch.ts @@ -81,12 +81,14 @@ class FetchResponse implements Response { return this.bodyWaiter; } - blob(): Promise<Blob> { + async blob(): Promise<Blob> { notImplemented(); + return {} as Blob; } - formData(): Promise<FormData> { + async formData(): Promise<FormData> { notImplemented(); + return {} as FormData; } async json(): Promise<object> { @@ -106,6 +108,7 @@ class FetchResponse implements Response { clone(): Response { notImplemented(); + return {} as Response; } onHeader?: (res: FetchResponse) => void; |