[pouchdb-core] Fix Blob interface by including dom (#29755)

* [pouchdb-core] Fix Blob interface by including dom

error TS2304: Cannot find name 'Blob'

* [pouchdb-core] duplicate Blob interface inline (#1)

Forward declare Blob instead of using a triple-slash directive.
/// <reference types="dom"> looks for 'dom' in Definitely Typed, but the 'dom' lib is built into TypeScript.
This commit is contained in:
wolfy1339
2018-10-22 08:50:43 -07:00
committed by Sheetal Nandi
parent 34475b21d6
commit ce0f54a891
+6
View File
@@ -9,6 +9,12 @@
/// <reference types="debug" />
/// <reference types="pouchdb-find" />
interface Blob {
readonly size: number;
readonly type: string;
slice(start?: number, end?: number, contentType?: string): Blob;
}
interface Buffer extends Uint8Array {
write(string: string, offset?: number, length?: number, encoding?: string): number;
toString(encoding?: string, start?: number, end?: number): string;