Skip to content

Commit 272aba1

Browse files
committed
Port generated lib files
1 parent cb9f436 commit 272aba1

File tree

3 files changed

+38
-32
lines changed

3 files changed

+38
-32
lines changed

src/lib/dom.generated.d.ts

+27-21
Original file line numberDiff line numberDiff line change
@@ -3285,6 +3285,7 @@ interface DOMTokenList {
32853285
contains(token: string): boolean;
32863286
item(index: number): string | null;
32873287
remove(...tokens: string[]): void;
3288+
replace(oldToken: string, newToken: string): void;
32883289
toString(): string;
32893290
toggle(token: string, force?: boolean): boolean;
32903291
[index: number]: string;
@@ -3532,10 +3533,10 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap {
35323533
"submit": Event;
35333534
"suspend": Event;
35343535
"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;
35393540
"volumechange": Event;
35403541
"waiting": Event;
35413542
"webkitfullscreenchange": Event;
@@ -3949,10 +3950,10 @@ interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent
39493950
* @param ev The event.
39503951
*/
39513952
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;
39563957
onvisibilitychange: (this: Document, ev: Event) => any;
39573958
/**
39583959
* Occurs when the volume is changed, or playback is muted or unmuted.
@@ -4138,6 +4139,7 @@ interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent
41384139
* @param y The y-offset
41394140
*/
41404141
elementFromPoint(x: number, y: number): Element;
4142+
elementsFromPoint(x: number, y: number): Element[];
41414143
evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
41424144
/**
41434145
* Executes a command on the current document, current selection, or the given range.
@@ -4312,6 +4314,7 @@ interface DocumentEvent {
43124314
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
43134315
createEvent(eventInterface: "StorageEvent"): StorageEvent;
43144316
createEvent(eventInterface: "TextEvent"): TextEvent;
4317+
createEvent(eventInterface: "TouchEvent"): TouchEvent;
43154318
createEvent(eventInterface: "TrackEvent"): TrackEvent;
43164319
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
43174320
createEvent(eventInterface: "UIEvent"): UIEvent;
@@ -4431,10 +4434,10 @@ interface ElementEventMap extends GlobalEventHandlersEventMap {
44314434
"MSPointerOut": Event;
44324435
"MSPointerOver": Event;
44334436
"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;
44384441
"webkitfullscreenchange": Event;
44394442
"webkitfullscreenerror": Event;
44404443
}
@@ -4473,10 +4476,10 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, ParentNod
44734476
onmspointerout: ((this: Element, ev: Event) => any) | null;
44744477
onmspointerover: ((this: Element, ev: Event) => any) | null;
44754478
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;
44804483
onwebkitfullscreenchange: ((this: Element, ev: Event) => any) | null;
44814484
onwebkitfullscreenerror: ((this: Element, ev: Event) => any) | null;
44824485
outerHTML: string;
@@ -6131,6 +6134,7 @@ interface HTMLImageElement extends HTMLElement {
61316134
readonly complete: boolean;
61326135
crossOrigin: string | null;
61336136
readonly currentSrc: string;
6137+
decoding: "async" | "sync" | "auto";
61346138
/**
61356139
* Sets or retrieves the height of the object.
61366140
*/
@@ -14742,7 +14746,7 @@ interface WebSocket extends EventTarget {
1474214746
readonly readyState: number;
1474314747
readonly url: string;
1474414748
close(code?: number, reason?: string): void;
14745-
send(data: string | ArrayBuffer | Blob | ArrayBufferView): void;
14749+
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
1474614750
readonly CLOSED: number;
1474714751
readonly CLOSING: number;
1474814752
readonly CONNECTING: number;
@@ -14868,10 +14872,10 @@ interface WindowEventMap extends GlobalEventHandlersEventMap {
1486814872
"submit": Event;
1486914873
"suspend": Event;
1487014874
"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;
1487514879
"unload": Event;
1487614880
"volumechange": Event;
1487714881
"vrdisplayactivate": Event;
@@ -15059,6 +15063,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1505915063
msWriteProfilerMark(profilerMarkName: string): void;
1506015064
open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
1506115065
postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
15066+
print(): void;
1506215067
prompt(message?: string, _default?: string): string | null;
1506315068
releaseEvents(): void;
1506415069
requestAnimationFrame(callback: FrameRequestCallback): number;
@@ -15868,6 +15873,7 @@ declare function moveTo(x?: number, y?: number): void;
1586815873
declare function msWriteProfilerMark(profilerMarkName: string): void;
1586915874
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
1587015875
declare function postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
15876+
declare function print(): void;
1587115877
declare function prompt(message?: string, _default?: string): string | null;
1587215878
declare function releaseEvents(): void;
1587315879
declare function requestAnimationFrame(callback: FrameRequestCallback): number;

src/lib/webworker.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ interface WebSocket extends EventTarget {
14431443
readonly readyState: number;
14441444
readonly url: string;
14451445
close(code?: number, reason?: string): void;
1446-
send(data: string | ArrayBuffer | Blob | ArrayBufferView): void;
1446+
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
14471447
readonly CLOSED: number;
14481448
readonly CLOSING: number;
14491449
readonly CONNECTING: number;

0 commit comments

Comments
 (0)