mirror of
https://github.com/denoland/deno.git
synced 2025-01-10 16:11:13 -05:00
Fix TS errors in fetch.ts
This commit is contained in:
parent
868e8d8866
commit
5d866161f8
1 changed files with 5 additions and 2 deletions
|
@ -81,12 +81,14 @@ class FetchResponse implements Response {
|
||||||
return this.bodyWaiter;
|
return this.bodyWaiter;
|
||||||
}
|
}
|
||||||
|
|
||||||
blob(): Promise<Blob> {
|
async blob(): Promise<Blob> {
|
||||||
notImplemented();
|
notImplemented();
|
||||||
|
return {} as Blob;
|
||||||
}
|
}
|
||||||
|
|
||||||
formData(): Promise<FormData> {
|
async formData(): Promise<FormData> {
|
||||||
notImplemented();
|
notImplemented();
|
||||||
|
return {} as FormData;
|
||||||
}
|
}
|
||||||
|
|
||||||
async json(): Promise<object> {
|
async json(): Promise<object> {
|
||||||
|
@ -106,6 +108,7 @@ class FetchResponse implements Response {
|
||||||
|
|
||||||
clone(): Response {
|
clone(): Response {
|
||||||
notImplemented();
|
notImplemented();
|
||||||
|
return {} as Response;
|
||||||
}
|
}
|
||||||
|
|
||||||
onHeader?: (res: FetchResponse) => void;
|
onHeader?: (res: FetchResponse) => void;
|
||||||
|
|
Loading…
Reference in a new issue