mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
[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:
Vendored
+6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user