From 8263d84923647d5cf5cacacd1aa82c69fc6d4b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Wed, 20 May 2020 16:24:41 +0100 Subject: [PATCH 1/3] Use upstream Blob directly in typings --- index.d.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/index.d.ts b/index.d.ts index 99b46bf..841e665 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,18 +1,4 @@ /// -/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */ -declare interface FetchBlob extends Blob { - [Symbol.toStringTag]: 'Blob'; - stream: () => ReadableStream; - text: () => Promise; - arrayBuffer: () => Promise; - toString: () => '[object Blob]'; - -} - -declare const FetchBlob: { - prototype: FetchBlob; - new(blobParts?: BlobPart[], options?: BlobPropertyBag): FetchBlob; -}; - -export = FetchBlob; +/* global Blob */ +export = Blob; From 2b0c895c72f3473c74f3b82bb5ef427fdb21645c Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Thu, 21 May 2020 13:56:58 +1200 Subject: [PATCH 2/3] Update index.d.ts --- index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 841e665..e0d9ec6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,3 @@ /// -/* global Blob */ export = Blob; From d87f59605e324d63312ec143afc043cadc534074 Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Thu, 21 May 2020 16:21:06 +1200 Subject: [PATCH 3/3] Fix lint --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index e0d9ec6..841e665 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,3 +1,4 @@ /// +/* global Blob */ export = Blob;