@@ -1255,7 +1255,7 @@ interface Console {
1255
1255
select(element: Element): void;
1256
1256
time(timerName?: string): void;
1257
1257
timeEnd(timerName?: string): void;
1258
- trace(): void;
1258
+ trace(message?: any, ...optionalParams: any[] ): void;
1259
1259
warn(message?: any, ...optionalParams: any[]): void;
1260
1260
}
1261
1261
@@ -1514,9 +1514,9 @@ interface DataTransferItemList {
1514
1514
length: number;
1515
1515
add(data: File): DataTransferItem;
1516
1516
clear(): void;
1517
- item(index: number): File ;
1517
+ item(index: number): DataTransferItem ;
1518
1518
remove(index: number): void;
1519
- [index: number]: File ;
1519
+ [index: number]: DataTransferItem ;
1520
1520
}
1521
1521
1522
1522
declare var DataTransferItemList: {
@@ -2569,6 +2569,8 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
2569
2569
* @param content The text and HTML tags to write.
2570
2570
*/
2571
2571
writeln(...content: string[]): void;
2572
+ createElement(tagName: "picture"): HTMLPictureElement;
2573
+ getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
2572
2574
addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
2573
2575
addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
2574
2576
addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -2981,6 +2983,7 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
2981
2983
webkitRequestFullscreen(): void;
2982
2984
getElementsByClassName(classNames: string): NodeListOf<Element>;
2983
2985
matches(selector: string): boolean;
2986
+ getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
2984
2987
addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
2985
2988
addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
2986
2989
addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -3770,6 +3773,7 @@ interface HTMLCanvasElement extends HTMLElement {
3770
3773
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
3771
3774
*/
3772
3775
toDataURL(type?: string, ...args: any[]): string;
3776
+ toBlob(): Blob;
3773
3777
}
3774
3778
3775
3779
declare var HTMLCanvasElement: {
@@ -6924,7 +6928,7 @@ interface IDBDatabase extends EventTarget {
6924
6928
objectStoreNames: DOMStringList;
6925
6929
onabort: (ev: Event) => any;
6926
6930
onerror: (ev: Event) => any;
6927
- version: string ;
6931
+ version: number ;
6928
6932
close(): void;
6929
6933
createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
6930
6934
deleteObjectStore(name: string): void;
@@ -7640,7 +7644,7 @@ declare var MediaQueryList: {
7640
7644
interface MediaSource extends EventTarget {
7641
7645
activeSourceBuffers: SourceBufferList;
7642
7646
duration: number;
7643
- readyState: number ;
7647
+ readyState: string ;
7644
7648
sourceBuffers: SourceBufferList;
7645
7649
addSourceBuffer(type: string): SourceBuffer;
7646
7650
endOfStream(error?: number): void;
@@ -10369,17 +10373,16 @@ declare var Storage: {
10369
10373
}
10370
10374
10371
10375
interface StorageEvent extends Event {
10372
- key: string;
10373
- newValue: any;
10374
- oldValue: any;
10375
- storageArea: Storage;
10376
10376
url: string;
10377
- initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void;
10377
+ key?: string;
10378
+ oldValue?: string;
10379
+ newValue?: string;
10380
+ storageArea?: Storage;
10378
10381
}
10379
10382
10380
10383
declare var StorageEvent: {
10381
10384
prototype: StorageEvent;
10382
- new( ): StorageEvent;
10385
+ new (type: string, eventInitDict?: StorageEventInit ): StorageEvent;
10383
10386
}
10384
10387
10385
10388
interface StyleMedia {
@@ -11977,7 +11980,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
11977
11980
msMatchMedia(mediaQuery: string): MediaQueryList;
11978
11981
msRequestAnimationFrame(callback: FrameRequestCallback): number;
11979
11982
msWriteProfilerMark(profilerMarkName: string): void;
11980
- open(url?: string, target?: string, features?: string, replace?: boolean): any ;
11983
+ open(url?: string, target?: string, features?: string, replace?: boolean): Window ;
11981
11984
postMessage(message: any, targetOrigin: string, ports?: any): void;
11982
11985
print(): void;
11983
11986
prompt(message?: string, _default?: string): string;
@@ -12579,6 +12582,14 @@ interface XMLHttpRequestEventTarget {
12579
12582
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
12580
12583
}
12581
12584
12585
+ interface StorageEventInit extends EventInit {
12586
+ key?: string;
12587
+ oldValue?: string;
12588
+ newValue?: string;
12589
+ url: string;
12590
+ storageArea?: Storage;
12591
+ }
12592
+
12582
12593
interface IDBObjectStoreParameters {
12583
12594
keyPath?: string | string[];
12584
12595
autoIncrement?: boolean;
@@ -12633,6 +12644,14 @@ declare var HTMLTemplateElement: {
12633
12644
new(): HTMLTemplateElement;
12634
12645
}
12635
12646
12647
+ interface HTMLPictureElement extends HTMLElement {
12648
+ }
12649
+
12650
+ declare var HTMLPictureElement: {
12651
+ prototype: HTMLPictureElement;
12652
+ new(): HTMLPictureElement;
12653
+ }
12654
+
12636
12655
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
12637
12656
12638
12657
interface ErrorEventHandler {
@@ -12829,7 +12848,7 @@ declare function msCancelRequestAnimationFrame(handle: number): void;
12829
12848
declare function msMatchMedia(mediaQuery: string): MediaQueryList;
12830
12849
declare function msRequestAnimationFrame(callback: FrameRequestCallback): number;
12831
12850
declare function msWriteProfilerMark(profilerMarkName: string): void;
12832
- declare function open(url?: string, target?: string, features?: string, replace?: boolean): any ;
12851
+ declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window ;
12833
12852
declare function postMessage(message: any, targetOrigin: string, ports?: any): void;
12834
12853
declare function print(): void;
12835
12854
declare function prompt(message?: string, _default?: string): string;
0 commit comments