Skip to content

Commit bec5a3d

Browse files
authored
Use upstream Blob directly in typings (#38)
1 parent 6fabfce commit bec5a3d

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

index.d.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
/// <reference lib="dom"/>
22

3-
/** 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. */
4-
declare interface FetchBlob extends Blob {
5-
[Symbol.toStringTag]: 'Blob';
6-
stream: () => ReadableStream;
7-
text: () => Promise<string>;
8-
arrayBuffer: () => Promise<ArrayBuffer>;
9-
toString: () => '[object Blob]';
10-
11-
}
12-
13-
declare const FetchBlob: {
14-
prototype: FetchBlob;
15-
new(blobParts?: BlobPart[], options?: BlobPropertyBag): FetchBlob;
16-
};
17-
18-
export = FetchBlob;
3+
/* global Blob */
4+
export = Blob;

0 commit comments

Comments
 (0)