From da28fc1e7b4551281ad14d49c7fb396010ba0107 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 11 Apr 2020 16:25:31 -0400 Subject: dedup type declarations (#4718) Blob, BlobPart, BufferSource, ReferrerPolicy, BlobPart, AbortSignal, AbortSignalEventMap --- cli/js/web/fetch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/js/web/fetch.ts') diff --git a/cli/js/web/fetch.ts b/cli/js/web/fetch.ts index 112bae48f..da6482ba3 100644 --- a/cli/js/web/fetch.ts +++ b/cli/js/web/fetch.ts @@ -80,7 +80,7 @@ class Body return this.#bodyPromise; } - async blob(): Promise { + async blob(): Promise { const arrayBuffer = await this.arrayBuffer(); return new DenoBlob([arrayBuffer], { type: this.contentType, @@ -384,7 +384,7 @@ export class Response implements domTypes.Response { return this.body.arrayBuffer(); } - blob(): Promise { + blob(): Promise { if (this.#bodyViewable() || this.body == null) { return Promise.reject(new Error("Response body is null")); } -- cgit v1.2.3