@@ -142,6 +142,7 @@ interface KeyAlgorithm {
142
142
}
143
143
144
144
interface KeyboardEventInit extends EventModifierInit {
145
+ code?: string;
145
146
key?: string;
146
147
location?: number;
147
148
repeat?: boolean;
@@ -2304,7 +2305,7 @@ declare var DeviceRotationRate: {
2304
2305
new(): DeviceRotationRate;
2305
2306
}
2306
2307
2307
- interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
2308
+ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode {
2308
2309
/**
2309
2310
* Sets or gets the URL for the current document.
2310
2311
*/
@@ -3367,7 +3368,7 @@ declare var Document: {
3367
3368
new(): Document;
3368
3369
}
3369
3370
3370
- interface DocumentFragment extends Node, NodeSelector {
3371
+ interface DocumentFragment extends Node, NodeSelector, ParentNode {
3371
3372
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
3372
3373
}
3373
3374
@@ -3436,7 +3437,7 @@ declare var EXT_texture_filter_anisotropic: {
3436
3437
readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
3437
3438
}
3438
3439
3439
- interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
3440
+ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode {
3440
3441
readonly classList: DOMTokenList;
3441
3442
className: string;
3442
3443
readonly clientHeight: number;
@@ -3691,6 +3692,16 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
3691
3692
getElementsByClassName(classNames: string): NodeListOf<Element>;
3692
3693
matches(selector: string): boolean;
3693
3694
closest(selector: string): Element | null;
3695
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
3696
+ scroll(options?: ScrollToOptions): void;
3697
+ scroll(x: number, y: number): void;
3698
+ scrollTo(options?: ScrollToOptions): void;
3699
+ scrollTo(x: number, y: number): void;
3700
+ scrollBy(options?: ScrollToOptions): void;
3701
+ scrollBy(x: number, y: number): void;
3702
+ insertAdjacentElement(position: string, insertedElement: Element): Element | null;
3703
+ insertAdjacentHTML(where: string, html: string): void;
3704
+ insertAdjacentText(where: string, text: string): void;
3694
3705
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
3695
3706
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
3696
3707
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -4462,7 +4473,7 @@ interface HTMLCanvasElement extends HTMLElement {
4462
4473
* @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.
4463
4474
*/
4464
4475
toDataURL(type?: string, ...args: any[]): string;
4465
- toBlob(callback: (result: Blob | null) => void, ... arguments: any[]): void;
4476
+ toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
4466
4477
}
4467
4478
4468
4479
declare var HTMLCanvasElement: {
@@ -4637,11 +4648,7 @@ interface HTMLElement extends Element {
4637
4648
click(): void;
4638
4649
dragDrop(): boolean;
4639
4650
focus(): void;
4640
- insertAdjacentElement(position: string, insertedElement: Element): Element;
4641
- insertAdjacentHTML(where: string, html: string): void;
4642
- insertAdjacentText(where: string, text: string): void;
4643
4651
msGetInputContext(): MSInputMethodContext;
4644
- scrollIntoView(top?: boolean): void;
4645
4652
setActive(): void;
4646
4653
addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
4647
4654
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -5906,6 +5913,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
5906
5913
*/
5907
5914
type: string;
5908
5915
import?: Document;
5916
+ integrity: string;
5909
5917
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5910
5918
}
5911
5919
@@ -6194,7 +6202,7 @@ interface HTMLMediaElement extends HTMLElement {
6194
6202
*/
6195
6203
canPlayType(type: string): string;
6196
6204
/**
6197
- * Fires immediately after the client loads the object .
6205
+ * Resets the audio or video object and loads a new media resource .
6198
6206
*/
6199
6207
load(): void;
6200
6208
/**
@@ -6767,6 +6775,7 @@ interface HTMLScriptElement extends HTMLElement {
6767
6775
* Sets or retrieves the MIME type for the associated scripting engine.
6768
6776
*/
6769
6777
type: string;
6778
+ integrity: string;
6770
6779
}
6771
6780
6772
6781
declare var HTMLScriptElement: {
@@ -7772,6 +7781,7 @@ interface KeyboardEvent extends UIEvent {
7772
7781
readonly repeat: boolean;
7773
7782
readonly shiftKey: boolean;
7774
7783
readonly which: number;
7784
+ readonly code: string;
7775
7785
getModifierState(keyArg: string): boolean;
7776
7786
initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
7777
7787
readonly DOM_KEY_LOCATION_JOYSTICK: number;
@@ -9144,6 +9154,7 @@ interface PerformanceTiming {
9144
9154
readonly responseStart: number;
9145
9155
readonly unloadEventEnd: number;
9146
9156
readonly unloadEventStart: number;
9157
+ readonly secureConnectionStart: number;
9147
9158
toJSON(): any;
9148
9159
}
9149
9160
@@ -11421,8 +11432,8 @@ declare var StereoPannerNode: {
11421
11432
interface Storage {
11422
11433
readonly length: number;
11423
11434
clear(): void;
11424
- getItem(key: string): string;
11425
- key(index: number): string;
11435
+ getItem(key: string): string | null ;
11436
+ key(index: number): string | null ;
11426
11437
removeItem(key: string): void;
11427
11438
setItem(key: string, data: string): void;
11428
11439
[key: string]: any;
@@ -12963,7 +12974,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
12963
12974
onunload: (this: this, ev: Event) => any;
12964
12975
onvolumechange: (this: this, ev: Event) => any;
12965
12976
onwaiting: (this: this, ev: Event) => any;
12966
- readonly opener: Window ;
12977
+ opener: any ;
12967
12978
orientation: string | number;
12968
12979
readonly outerHeight: number;
12969
12980
readonly outerWidth: number;
@@ -13018,6 +13029,9 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
13018
13029
webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
13019
13030
webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
13020
13031
webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
13032
+ scroll(options?: ScrollToOptions): void;
13033
+ scrollTo(options?: ScrollToOptions): void;
13034
+ scrollBy(options?: ScrollToOptions): void;
13021
13035
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
13022
13036
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
13023
13037
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -14045,6 +14059,20 @@ interface ProgressEventInit extends EventInit {
14045
14059
total?: number;
14046
14060
}
14047
14061
14062
+ interface ScrollOptions {
14063
+ behavior?: ScrollBehavior;
14064
+ }
14065
+
14066
+ interface ScrollToOptions extends ScrollOptions {
14067
+ left?: number;
14068
+ top?: number;
14069
+ }
14070
+
14071
+ interface ScrollIntoViewOptions extends ScrollOptions {
14072
+ block?: ScrollLogicalPosition;
14073
+ inline?: ScrollLogicalPosition;
14074
+ }
14075
+
14048
14076
interface ClipboardEventInit extends EventInit {
14049
14077
data?: string;
14050
14078
dataType?: string;
@@ -14088,7 +14116,7 @@ interface EcdsaParams extends Algorithm {
14088
14116
}
14089
14117
14090
14118
interface EcKeyGenParams extends Algorithm {
14091
- typedCurve : string;
14119
+ namedCurve : string;
14092
14120
}
14093
14121
14094
14122
interface EcKeyAlgorithm extends KeyAlgorithm {
@@ -14224,6 +14252,13 @@ interface JsonWebKey {
14224
14252
k?: string;
14225
14253
}
14226
14254
14255
+ interface ParentNode {
14256
+ readonly children: HTMLCollection;
14257
+ readonly firstElementChild: Element;
14258
+ readonly lastElementChild: Element;
14259
+ readonly childElementCount: number;
14260
+ }
14261
+
14227
14262
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
14228
14263
14229
14264
interface ErrorEventHandler {
@@ -14294,7 +14329,7 @@ declare var location: Location;
14294
14329
declare var locationbar: BarProp;
14295
14330
declare var menubar: BarProp;
14296
14331
declare var msCredentials: MSCredentials;
14297
- declare var name: string ;
14332
+ declare const name: never ;
14298
14333
declare var navigator: Navigator;
14299
14334
declare var offscreenBuffering: string | boolean;
14300
14335
declare var onabort: (this: Window, ev: UIEvent) => any;
@@ -14388,7 +14423,7 @@ declare var ontouchstart: (ev: TouchEvent) => any;
14388
14423
declare var onunload: (this: Window, ev: Event) => any;
14389
14424
declare var onvolumechange: (this: Window, ev: Event) => any;
14390
14425
declare var onwaiting: (this: Window, ev: Event) => any;
14391
- declare var opener: Window ;
14426
+ declare var opener: any ;
14392
14427
declare var orientation: string | number;
14393
14428
declare var outerHeight: number;
14394
14429
declare var outerWidth: number;
@@ -14441,6 +14476,9 @@ declare function webkitCancelAnimationFrame(handle: number): void;
14441
14476
declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
14442
14477
declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
14443
14478
declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
14479
+ declare function scroll(options?: ScrollToOptions): void;
14480
+ declare function scrollTo(options?: ScrollToOptions): void;
14481
+ declare function scrollBy(options?: ScrollToOptions): void;
14444
14482
declare function toString(): string;
14445
14483
declare function addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
14446
14484
declare function dispatchEvent(evt: Event): boolean;
@@ -14596,6 +14634,8 @@ type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
14596
14634
type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
14597
14635
type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
14598
14636
type payloadtype = number;
14637
+ type ScrollBehavior = "auto" | "instant" | "smooth";
14638
+ type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
14599
14639
type IDBValidKey = number | string | Date | IDBArrayKey;
14600
14640
type BufferSource = ArrayBuffer | ArrayBufferView;
14601
14641
type MouseWheelEvent = WheelEvent;
0 commit comments