Skip to content

Commit f61d07d

Browse files
committed
add constructor paramters to Blob
1 parent 6fee404 commit f61d07d

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

src/lib/dom.generated.d.ts

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,23 @@ declare var HTMLCollection: {
18861886
new(): HTMLCollection;
18871887
}
18881888

1889+
interface BlobPropertyBag {
1890+
type?: string;
1891+
endings?: string;
1892+
}
1893+
1894+
interface Blob {
1895+
type: string;
1896+
size: number;
1897+
msDetachStream(): any;
1898+
slice(start?: number, end?: number, contentType?: string): Blob;
1899+
msClose(): void;
1900+
}
1901+
declare var Blob: {
1902+
prototype: Blob;
1903+
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
1904+
}
1905+
18891906
interface NavigatorID {
18901907
appVersion: string;
18911908
appName: string;
@@ -10027,18 +10044,6 @@ declare var FileReader: {
1002710044
new(): FileReader;
1002810045
}
1002910046

10030-
interface Blob {
10031-
type: string;
10032-
size: number;
10033-
msDetachStream(): any;
10034-
slice(start?: number, end?: number, contentType?: string): Blob;
10035-
msClose(): void;
10036-
}
10037-
declare var Blob: {
10038-
prototype: Blob;
10039-
new(): Blob;
10040-
}
10041-
1004210047
interface ApplicationCache extends EventTarget {
1004310048
status: number;
1004410049
ondownloading: (ev: Event) => any;

src/lib/webworker.generated.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,11 @@ declare var FileReader: {
614614
new(): FileReader;
615615
}
616616

617+
interface BlobPropertyBag {
618+
type?: string;
619+
endings?: string;
620+
}
621+
617622
interface Blob {
618623
type: string;
619624
size: number;
@@ -623,7 +628,7 @@ interface Blob {
623628
}
624629
declare var Blob: {
625630
prototype: Blob;
626-
new(): Blob;
631+
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
627632
}
628633

629634
interface MSStream {

0 commit comments

Comments
 (0)