Skip to content

Commit bdb1081

Browse files
authored
Use upstream Blob directly in typings
1 parent 6fabfce commit bdb1081

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

index.d.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,2 @@
11
/// <reference lib="dom"/>
2-
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;
2+
export = Blob;

0 commit comments

Comments
 (0)