-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use upstream Blob directly in typings (#38)
- Loading branch information
Showing
1 changed file
with
2 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |