Skip to content

Commit c254e95

Browse files
author
Kanchalai Tanglertsampan
committed
Update LKG on 08/22
1 parent 796c079 commit c254e95

File tree

12 files changed

+1273
-808
lines changed

12 files changed

+1273
-808
lines changed

lib/lib.d.ts

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4258,6 +4258,7 @@ interface KeyAlgorithm {
42584258
}
42594259

42604260
interface KeyboardEventInit extends EventModifierInit {
4261+
code?: string;
42614262
key?: string;
42624263
location?: number;
42634264
repeat?: boolean;
@@ -6420,7 +6421,7 @@ declare var DeviceRotationRate: {
64206421
new(): DeviceRotationRate;
64216422
}
64226423

6423-
interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
6424+
interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode {
64246425
/**
64256426
* Sets or gets the URL for the current document.
64266427
*/
@@ -7483,7 +7484,7 @@ declare var Document: {
74837484
new(): Document;
74847485
}
74857486

7486-
interface DocumentFragment extends Node, NodeSelector {
7487+
interface DocumentFragment extends Node, NodeSelector, ParentNode {
74877488
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
74887489
}
74897490

@@ -7552,7 +7553,7 @@ declare var EXT_texture_filter_anisotropic: {
75527553
readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
75537554
}
75547555

7555-
interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
7556+
interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode {
75567557
readonly classList: DOMTokenList;
75577558
className: string;
75587559
readonly clientHeight: number;
@@ -7807,6 +7808,16 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
78077808
getElementsByClassName(classNames: string): NodeListOf<Element>;
78087809
matches(selector: string): boolean;
78097810
closest(selector: string): Element | null;
7811+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
7812+
scroll(options?: ScrollToOptions): void;
7813+
scroll(x: number, y: number): void;
7814+
scrollTo(options?: ScrollToOptions): void;
7815+
scrollTo(x: number, y: number): void;
7816+
scrollBy(options?: ScrollToOptions): void;
7817+
scrollBy(x: number, y: number): void;
7818+
insertAdjacentElement(position: string, insertedElement: Element): Element | null;
7819+
insertAdjacentHTML(where: string, html: string): void;
7820+
insertAdjacentText(where: string, text: string): void;
78107821
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
78117822
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
78127823
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -8578,7 +8589,7 @@ interface HTMLCanvasElement extends HTMLElement {
85788589
* @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.
85798590
*/
85808591
toDataURL(type?: string, ...args: any[]): string;
8581-
toBlob(callback: (result: Blob | null) => void, ... arguments: any[]): void;
8592+
toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
85828593
}
85838594

85848595
declare var HTMLCanvasElement: {
@@ -8753,11 +8764,7 @@ interface HTMLElement extends Element {
87538764
click(): void;
87548765
dragDrop(): boolean;
87558766
focus(): void;
8756-
insertAdjacentElement(position: string, insertedElement: Element): Element;
8757-
insertAdjacentHTML(where: string, html: string): void;
8758-
insertAdjacentText(where: string, text: string): void;
87598767
msGetInputContext(): MSInputMethodContext;
8760-
scrollIntoView(top?: boolean): void;
87618768
setActive(): void;
87628769
addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
87638770
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -10022,6 +10029,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
1002210029
*/
1002310030
type: string;
1002410031
import?: Document;
10032+
integrity: string;
1002510033
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1002610034
}
1002710035

@@ -10310,7 +10318,7 @@ interface HTMLMediaElement extends HTMLElement {
1031010318
*/
1031110319
canPlayType(type: string): string;
1031210320
/**
10313-
* Fires immediately after the client loads the object.
10321+
* Resets the audio or video object and loads a new media resource.
1031410322
*/
1031510323
load(): void;
1031610324
/**
@@ -10883,6 +10891,7 @@ interface HTMLScriptElement extends HTMLElement {
1088310891
* Sets or retrieves the MIME type for the associated scripting engine.
1088410892
*/
1088510893
type: string;
10894+
integrity: string;
1088610895
}
1088710896

1088810897
declare var HTMLScriptElement: {
@@ -11888,6 +11897,7 @@ interface KeyboardEvent extends UIEvent {
1188811897
readonly repeat: boolean;
1188911898
readonly shiftKey: boolean;
1189011899
readonly which: number;
11900+
readonly code: string;
1189111901
getModifierState(keyArg: string): boolean;
1189211902
initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
1189311903
readonly DOM_KEY_LOCATION_JOYSTICK: number;
@@ -13260,6 +13270,7 @@ interface PerformanceTiming {
1326013270
readonly responseStart: number;
1326113271
readonly unloadEventEnd: number;
1326213272
readonly unloadEventStart: number;
13273+
readonly secureConnectionStart: number;
1326313274
toJSON(): any;
1326413275
}
1326513276

@@ -15537,8 +15548,8 @@ declare var StereoPannerNode: {
1553715548
interface Storage {
1553815549
readonly length: number;
1553915550
clear(): void;
15540-
getItem(key: string): string;
15541-
key(index: number): string;
15551+
getItem(key: string): string | null;
15552+
key(index: number): string | null;
1554215553
removeItem(key: string): void;
1554315554
setItem(key: string, data: string): void;
1554415555
[key: string]: any;
@@ -17079,7 +17090,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1707917090
onunload: (this: this, ev: Event) => any;
1708017091
onvolumechange: (this: this, ev: Event) => any;
1708117092
onwaiting: (this: this, ev: Event) => any;
17082-
readonly opener: Window;
17093+
opener: any;
1708317094
orientation: string | number;
1708417095
readonly outerHeight: number;
1708517096
readonly outerWidth: number;
@@ -17134,6 +17145,9 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1713417145
webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
1713517146
webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
1713617147
webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
17148+
scroll(options?: ScrollToOptions): void;
17149+
scrollTo(options?: ScrollToOptions): void;
17150+
scrollBy(options?: ScrollToOptions): void;
1713717151
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
1713817152
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
1713917153
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -18161,6 +18175,20 @@ interface ProgressEventInit extends EventInit {
1816118175
total?: number;
1816218176
}
1816318177

18178+
interface ScrollOptions {
18179+
behavior?: ScrollBehavior;
18180+
}
18181+
18182+
interface ScrollToOptions extends ScrollOptions {
18183+
left?: number;
18184+
top?: number;
18185+
}
18186+
18187+
interface ScrollIntoViewOptions extends ScrollOptions {
18188+
block?: ScrollLogicalPosition;
18189+
inline?: ScrollLogicalPosition;
18190+
}
18191+
1816418192
interface ClipboardEventInit extends EventInit {
1816518193
data?: string;
1816618194
dataType?: string;
@@ -18204,7 +18232,7 @@ interface EcdsaParams extends Algorithm {
1820418232
}
1820518233

1820618234
interface EcKeyGenParams extends Algorithm {
18207-
typedCurve: string;
18235+
namedCurve: string;
1820818236
}
1820918237

1821018238
interface EcKeyAlgorithm extends KeyAlgorithm {
@@ -18340,6 +18368,13 @@ interface JsonWebKey {
1834018368
k?: string;
1834118369
}
1834218370

18371+
interface ParentNode {
18372+
readonly children: HTMLCollection;
18373+
readonly firstElementChild: Element;
18374+
readonly lastElementChild: Element;
18375+
readonly childElementCount: number;
18376+
}
18377+
1834318378
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
1834418379

1834518380
interface ErrorEventHandler {
@@ -18410,7 +18445,7 @@ declare var location: Location;
1841018445
declare var locationbar: BarProp;
1841118446
declare var menubar: BarProp;
1841218447
declare var msCredentials: MSCredentials;
18413-
declare var name: string;
18448+
declare const name: never;
1841418449
declare var navigator: Navigator;
1841518450
declare var offscreenBuffering: string | boolean;
1841618451
declare var onabort: (this: Window, ev: UIEvent) => any;
@@ -18504,7 +18539,7 @@ declare var ontouchstart: (ev: TouchEvent) => any;
1850418539
declare var onunload: (this: Window, ev: Event) => any;
1850518540
declare var onvolumechange: (this: Window, ev: Event) => any;
1850618541
declare var onwaiting: (this: Window, ev: Event) => any;
18507-
declare var opener: Window;
18542+
declare var opener: any;
1850818543
declare var orientation: string | number;
1850918544
declare var outerHeight: number;
1851018545
declare var outerWidth: number;
@@ -18557,6 +18592,9 @@ declare function webkitCancelAnimationFrame(handle: number): void;
1855718592
declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
1855818593
declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
1855918594
declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
18595+
declare function scroll(options?: ScrollToOptions): void;
18596+
declare function scrollTo(options?: ScrollToOptions): void;
18597+
declare function scrollBy(options?: ScrollToOptions): void;
1856018598
declare function toString(): string;
1856118599
declare function addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1856218600
declare function dispatchEvent(evt: Event): boolean;
@@ -18712,6 +18750,8 @@ type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
1871218750
type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
1871318751
type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
1871418752
type payloadtype = number;
18753+
type ScrollBehavior = "auto" | "instant" | "smooth";
18754+
type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
1871518755
type IDBValidKey = number | string | Date | IDBArrayKey;
1871618756
type BufferSource = ArrayBuffer | ArrayBufferView;
1871718757
type MouseWheelEvent = WheelEvent;

0 commit comments

Comments
 (0)