summaryrefslogtreecommitdiff
path: root/cli/js/web/fetch.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-11 16:25:31 -0400
committerGitHub <noreply@github.com>2020-04-11 16:25:31 -0400
commitda28fc1e7b4551281ad14d49c7fb396010ba0107 (patch)
tree9293ea58dda9c48e5536d7d953414c66bffb2499 /cli/js/web/fetch.ts
parent0641ad0d9b073f67e6f665430567d00b7f36e8a8 (diff)
dedup type declarations (#4718)
Blob, BlobPart, BufferSource, ReferrerPolicy, BlobPart, AbortSignal, AbortSignalEventMap
Diffstat (limited to 'cli/js/web/fetch.ts')
-rw-r--r--cli/js/web/fetch.ts4
1 files changed, 2 insertions, 2 deletions
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<domTypes.Blob> {
+ async blob(): Promise<Blob> {
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<domTypes.Blob> {
+ blob(): Promise<Blob> {
if (this.#bodyViewable() || this.body == null) {
return Promise.reject(new Error("Response body is null"));
}