@@ -3285,6 +3285,7 @@ interface DOMTokenList {
3285
3285
contains(token: string): boolean;
3286
3286
item(index: number): string | null;
3287
3287
remove(...tokens: string[]): void;
3288
+ replace(oldToken: string, newToken: string): void;
3288
3289
toString(): string;
3289
3290
toggle(token: string, force?: boolean): boolean;
3290
3291
[index: number]: string;
@@ -3532,10 +3533,10 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap {
3532
3533
"submit": Event;
3533
3534
"suspend": Event;
3534
3535
"timeupdate": Event;
3535
- "touchcancel": Event ;
3536
- "touchend": Event ;
3537
- "touchmove": Event ;
3538
- "touchstart": Event ;
3536
+ "touchcancel": TouchEvent ;
3537
+ "touchend": TouchEvent ;
3538
+ "touchmove": TouchEvent ;
3539
+ "touchstart": TouchEvent ;
3539
3540
"volumechange": Event;
3540
3541
"waiting": Event;
3541
3542
"webkitfullscreenchange": Event;
@@ -3949,10 +3950,10 @@ interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent
3949
3950
* @param ev The event.
3950
3951
*/
3951
3952
ontimeupdate: ((this: Document, ev: Event) => any) | null;
3952
- ontouchcancel: ((this: Document, ev: Event ) => any) | null;
3953
- ontouchend: ((this: Document, ev: Event ) => any) | null;
3954
- ontouchmove: ((this: Document, ev: Event ) => any) | null;
3955
- ontouchstart: ((this: Document, ev: Event ) => any) | null;
3953
+ ontouchcancel: ((this: Document, ev: TouchEvent ) => any) | null;
3954
+ ontouchend: ((this: Document, ev: TouchEvent ) => any) | null;
3955
+ ontouchmove: ((this: Document, ev: TouchEvent ) => any) | null;
3956
+ ontouchstart: ((this: Document, ev: TouchEvent ) => any) | null;
3956
3957
onvisibilitychange: (this: Document, ev: Event) => any;
3957
3958
/**
3958
3959
* Occurs when the volume is changed, or playback is muted or unmuted.
@@ -4138,6 +4139,7 @@ interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent
4138
4139
* @param y The y-offset
4139
4140
*/
4140
4141
elementFromPoint(x: number, y: number): Element;
4142
+ elementsFromPoint(x: number, y: number): Element[];
4141
4143
evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
4142
4144
/**
4143
4145
* Executes a command on the current document, current selection, or the given range.
@@ -4312,6 +4314,7 @@ interface DocumentEvent {
4312
4314
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
4313
4315
createEvent(eventInterface: "StorageEvent"): StorageEvent;
4314
4316
createEvent(eventInterface: "TextEvent"): TextEvent;
4317
+ createEvent(eventInterface: "TouchEvent"): TouchEvent;
4315
4318
createEvent(eventInterface: "TrackEvent"): TrackEvent;
4316
4319
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
4317
4320
createEvent(eventInterface: "UIEvent"): UIEvent;
@@ -4431,10 +4434,10 @@ interface ElementEventMap extends GlobalEventHandlersEventMap {
4431
4434
"MSPointerOut": Event;
4432
4435
"MSPointerOver": Event;
4433
4436
"MSPointerUp": Event;
4434
- "touchcancel": Event ;
4435
- "touchend": Event ;
4436
- "touchmove": Event ;
4437
- "touchstart": Event ;
4437
+ "touchcancel": TouchEvent ;
4438
+ "touchend": TouchEvent ;
4439
+ "touchmove": TouchEvent ;
4440
+ "touchstart": TouchEvent ;
4438
4441
"webkitfullscreenchange": Event;
4439
4442
"webkitfullscreenerror": Event;
4440
4443
}
@@ -4473,10 +4476,10 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, ParentNod
4473
4476
onmspointerout: ((this: Element, ev: Event) => any) | null;
4474
4477
onmspointerover: ((this: Element, ev: Event) => any) | null;
4475
4478
onmspointerup: ((this: Element, ev: Event) => any) | null;
4476
- ontouchcancel: ((this: Element, ev: Event ) => any) | null;
4477
- ontouchend: ((this: Element, ev: Event ) => any) | null;
4478
- ontouchmove: ((this: Element, ev: Event ) => any) | null;
4479
- ontouchstart: ((this: Element, ev: Event ) => any) | null;
4479
+ ontouchcancel: ((this: Element, ev: TouchEvent ) => any) | null;
4480
+ ontouchend: ((this: Element, ev: TouchEvent ) => any) | null;
4481
+ ontouchmove: ((this: Element, ev: TouchEvent ) => any) | null;
4482
+ ontouchstart: ((this: Element, ev: TouchEvent ) => any) | null;
4480
4483
onwebkitfullscreenchange: ((this: Element, ev: Event) => any) | null;
4481
4484
onwebkitfullscreenerror: ((this: Element, ev: Event) => any) | null;
4482
4485
outerHTML: string;
@@ -6131,6 +6134,7 @@ interface HTMLImageElement extends HTMLElement {
6131
6134
readonly complete: boolean;
6132
6135
crossOrigin: string | null;
6133
6136
readonly currentSrc: string;
6137
+ decoding: "async" | "sync" | "auto";
6134
6138
/**
6135
6139
* Sets or retrieves the height of the object.
6136
6140
*/
@@ -14742,7 +14746,7 @@ interface WebSocket extends EventTarget {
14742
14746
readonly readyState: number;
14743
14747
readonly url: string;
14744
14748
close(code?: number, reason?: string): void;
14745
- send(data: string | ArrayBuffer | Blob | ArrayBufferView): void;
14749
+ send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
14746
14750
readonly CLOSED: number;
14747
14751
readonly CLOSING: number;
14748
14752
readonly CONNECTING: number;
@@ -14868,10 +14872,10 @@ interface WindowEventMap extends GlobalEventHandlersEventMap {
14868
14872
"submit": Event;
14869
14873
"suspend": Event;
14870
14874
"timeupdate": Event;
14871
- "touchcancel": Event ;
14872
- "touchend": Event ;
14873
- "touchmove": Event ;
14874
- "touchstart": Event ;
14875
+ "touchcancel": TouchEvent ;
14876
+ "touchend": TouchEvent ;
14877
+ "touchmove": TouchEvent ;
14878
+ "touchstart": TouchEvent ;
14875
14879
"unload": Event;
14876
14880
"volumechange": Event;
14877
14881
"vrdisplayactivate": Event;
@@ -15059,6 +15063,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
15059
15063
msWriteProfilerMark(profilerMarkName: string): void;
15060
15064
open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
15061
15065
postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
15066
+ print(): void;
15062
15067
prompt(message?: string, _default?: string): string | null;
15063
15068
releaseEvents(): void;
15064
15069
requestAnimationFrame(callback: FrameRequestCallback): number;
@@ -15868,6 +15873,7 @@ declare function moveTo(x?: number, y?: number): void;
15868
15873
declare function msWriteProfilerMark(profilerMarkName: string): void;
15869
15874
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
15870
15875
declare function postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
15876
+ declare function print(): void;
15871
15877
declare function prompt(message?: string, _default?: string): string | null;
15872
15878
declare function releaseEvents(): void;
15873
15879
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
0 commit comments