1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

Fix TS errors in fetch.ts

This commit is contained in:
Ryan Dahl 2018-08-20 21:03:11 -04:00
parent 868e8d8866
commit 5d866161f8

View file

@ -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;