@@ -126,6 +126,7 @@ interface KeyAlgorithm {
126
126
}
127
127
128
128
interface KeyboardEventInit extends EventModifierInit {
129
+ code?: string;
129
130
key?: string;
130
131
location?: number;
131
132
repeat?: boolean;
@@ -2288,7 +2289,7 @@ declare var DeviceRotationRate: {
2288
2289
new(): DeviceRotationRate;
2289
2290
}
2290
2291
2291
- interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
2292
+ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode {
2292
2293
/**
2293
2294
* Sets or gets the URL for the current document.
2294
2295
*/
@@ -3351,7 +3352,7 @@ declare var Document: {
3351
3352
new(): Document;
3352
3353
}
3353
3354
3354
- interface DocumentFragment extends Node, NodeSelector {
3355
+ interface DocumentFragment extends Node, NodeSelector, ParentNode {
3355
3356
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
3356
3357
}
3357
3358
@@ -3420,7 +3421,7 @@ declare var EXT_texture_filter_anisotropic: {
3420
3421
readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
3421
3422
}
3422
3423
3423
- interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
3424
+ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode {
3424
3425
readonly classList: DOMTokenList;
3425
3426
className: string;
3426
3427
readonly clientHeight: number;
@@ -3675,6 +3676,16 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
3675
3676
getElementsByClassName(classNames: string): NodeListOf<Element>;
3676
3677
matches(selector: string): boolean;
3677
3678
closest(selector: string): Element | null;
3679
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
3680
+ scroll(options?: ScrollToOptions): void;
3681
+ scroll(x: number, y: number): void;
3682
+ scrollTo(options?: ScrollToOptions): void;
3683
+ scrollTo(x: number, y: number): void;
3684
+ scrollBy(options?: ScrollToOptions): void;
3685
+ scrollBy(x: number, y: number): void;
3686
+ insertAdjacentElement(position: string, insertedElement: Element): Element | null;
3687
+ insertAdjacentHTML(where: string, html: string): void;
3688
+ insertAdjacentText(where: string, text: string): void;
3678
3689
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
3679
3690
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
3680
3691
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -4446,7 +4457,7 @@ interface HTMLCanvasElement extends HTMLElement {
4446
4457
* @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.
4447
4458
*/
4448
4459
toDataURL(type?: string, ...args: any[]): string;
4449
- toBlob(callback: (result: Blob | null) => void, ... arguments: any[]): void;
4460
+ toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
4450
4461
}
4451
4462
4452
4463
declare var HTMLCanvasElement: {
@@ -4621,11 +4632,7 @@ interface HTMLElement extends Element {
4621
4632
click(): void;
4622
4633
dragDrop(): boolean;
4623
4634
focus(): void;
4624
- insertAdjacentElement(position: string, insertedElement: Element): Element;
4625
- insertAdjacentHTML(where: string, html: string): void;
4626
- insertAdjacentText(where: string, text: string): void;
4627
4635
msGetInputContext(): MSInputMethodContext;
4628
- scrollIntoView(top?: boolean): void;
4629
4636
setActive(): void;
4630
4637
addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
4631
4638
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -5890,6 +5897,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
5890
5897
*/
5891
5898
type: string;
5892
5899
import?: Document;
5900
+ integrity: string;
5893
5901
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5894
5902
}
5895
5903
@@ -6178,7 +6186,7 @@ interface HTMLMediaElement extends HTMLElement {
6178
6186
*/
6179
6187
canPlayType(type: string): string;
6180
6188
/**
6181
- * Fires immediately after the client loads the object .
6189
+ * Resets the audio or video object and loads a new media resource .
6182
6190
*/
6183
6191
load(): void;
6184
6192
/**
@@ -6751,6 +6759,7 @@ interface HTMLScriptElement extends HTMLElement {
6751
6759
* Sets or retrieves the MIME type for the associated scripting engine.
6752
6760
*/
6753
6761
type: string;
6762
+ integrity: string;
6754
6763
}
6755
6764
6756
6765
declare var HTMLScriptElement: {
@@ -7756,6 +7765,7 @@ interface KeyboardEvent extends UIEvent {
7756
7765
readonly repeat: boolean;
7757
7766
readonly shiftKey: boolean;
7758
7767
readonly which: number;
7768
+ readonly code: string;
7759
7769
getModifierState(keyArg: string): boolean;
7760
7770
initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
7761
7771
readonly DOM_KEY_LOCATION_JOYSTICK: number;
@@ -9128,6 +9138,7 @@ interface PerformanceTiming {
9128
9138
readonly responseStart: number;
9129
9139
readonly unloadEventEnd: number;
9130
9140
readonly unloadEventStart: number;
9141
+ readonly secureConnectionStart: number;
9131
9142
toJSON(): any;
9132
9143
}
9133
9144
@@ -11405,8 +11416,8 @@ declare var StereoPannerNode: {
11405
11416
interface Storage {
11406
11417
readonly length: number;
11407
11418
clear(): void;
11408
- getItem(key: string): string;
11409
- key(index: number): string;
11419
+ getItem(key: string): string | null ;
11420
+ key(index: number): string | null ;
11410
11421
removeItem(key: string): void;
11411
11422
setItem(key: string, data: string): void;
11412
11423
[key: string]: any;
@@ -12947,7 +12958,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
12947
12958
onunload: (this: this, ev: Event) => any;
12948
12959
onvolumechange: (this: this, ev: Event) => any;
12949
12960
onwaiting: (this: this, ev: Event) => any;
12950
- readonly opener: Window ;
12961
+ opener: any ;
12951
12962
orientation: string | number;
12952
12963
readonly outerHeight: number;
12953
12964
readonly outerWidth: number;
@@ -13002,6 +13013,9 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
13002
13013
webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
13003
13014
webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
13004
13015
webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
13016
+ scroll(options?: ScrollToOptions): void;
13017
+ scrollTo(options?: ScrollToOptions): void;
13018
+ scrollBy(options?: ScrollToOptions): void;
13005
13019
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
13006
13020
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
13007
13021
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -14029,6 +14043,20 @@ interface ProgressEventInit extends EventInit {
14029
14043
total?: number;
14030
14044
}
14031
14045
14046
+ interface ScrollOptions {
14047
+ behavior?: ScrollBehavior;
14048
+ }
14049
+
14050
+ interface ScrollToOptions extends ScrollOptions {
14051
+ left?: number;
14052
+ top?: number;
14053
+ }
14054
+
14055
+ interface ScrollIntoViewOptions extends ScrollOptions {
14056
+ block?: ScrollLogicalPosition;
14057
+ inline?: ScrollLogicalPosition;
14058
+ }
14059
+
14032
14060
interface ClipboardEventInit extends EventInit {
14033
14061
data?: string;
14034
14062
dataType?: string;
@@ -14072,7 +14100,7 @@ interface EcdsaParams extends Algorithm {
14072
14100
}
14073
14101
14074
14102
interface EcKeyGenParams extends Algorithm {
14075
- typedCurve : string;
14103
+ namedCurve : string;
14076
14104
}
14077
14105
14078
14106
interface EcKeyAlgorithm extends KeyAlgorithm {
@@ -14208,6 +14236,13 @@ interface JsonWebKey {
14208
14236
k?: string;
14209
14237
}
14210
14238
14239
+ interface ParentNode {
14240
+ readonly children: HTMLCollection;
14241
+ readonly firstElementChild: Element;
14242
+ readonly lastElementChild: Element;
14243
+ readonly childElementCount: number;
14244
+ }
14245
+
14211
14246
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
14212
14247
14213
14248
interface ErrorEventHandler {
@@ -14278,7 +14313,7 @@ declare var location: Location;
14278
14313
declare var locationbar: BarProp;
14279
14314
declare var menubar: BarProp;
14280
14315
declare var msCredentials: MSCredentials;
14281
- declare var name: string ;
14316
+ declare const name: never ;
14282
14317
declare var navigator: Navigator;
14283
14318
declare var offscreenBuffering: string | boolean;
14284
14319
declare var onabort: (this: Window, ev: UIEvent) => any;
@@ -14372,7 +14407,7 @@ declare var ontouchstart: (ev: TouchEvent) => any;
14372
14407
declare var onunload: (this: Window, ev: Event) => any;
14373
14408
declare var onvolumechange: (this: Window, ev: Event) => any;
14374
14409
declare var onwaiting: (this: Window, ev: Event) => any;
14375
- declare var opener: Window ;
14410
+ declare var opener: any ;
14376
14411
declare var orientation: string | number;
14377
14412
declare var outerHeight: number;
14378
14413
declare var outerWidth: number;
@@ -14425,6 +14460,9 @@ declare function webkitCancelAnimationFrame(handle: number): void;
14425
14460
declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
14426
14461
declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
14427
14462
declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
14463
+ declare function scroll(options?: ScrollToOptions): void;
14464
+ declare function scrollTo(options?: ScrollToOptions): void;
14465
+ declare function scrollBy(options?: ScrollToOptions): void;
14428
14466
declare function toString(): string;
14429
14467
declare function addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
14430
14468
declare function dispatchEvent(evt: Event): boolean;
@@ -14580,6 +14618,8 @@ type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
14580
14618
type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
14581
14619
type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
14582
14620
type payloadtype = number;
14621
+ type ScrollBehavior = "auto" | "instant" | "smooth";
14622
+ type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
14583
14623
type IDBValidKey = number | string | Date | IDBArrayKey;
14584
14624
type BufferSource = ArrayBuffer | ArrayBufferView;
14585
14625
type MouseWheelEvent = WheelEvent;
0 commit comments