Use upstream Blob directly in typings (#38)

This commit is contained in:
Linus Unnebäck
2020-05-21 09:12:04 +01:00
committed by GitHub
parent 6fabfce52f
commit bec5a3dceb
Vendored
+2 -16
View File
@@ -1,18 +1,4 @@
/// <reference lib="dom"/>
/** 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<string>;
arrayBuffer: () => Promise<ArrayBuffer>;
toString: () => '[object Blob]';
}
declare const FetchBlob: {
prototype: FetchBlob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): FetchBlob;
};
export = FetchBlob;
/* global Blob */
export = Blob;