Skip to content

Commit 5ae14bc

Browse files
authored
Merge pull request #23069 from Microsoft/portGenerat3edLibFiles4-2
Port generated lib files
2 parents d5142a7 + f29a51f commit 5ae14bc

File tree

3 files changed

+50
-40
lines changed

3 files changed

+50
-40
lines changed

src/lib/dom.generated.d.ts

+30-24
Original file line numberDiff line numberDiff line change
@@ -4722,12 +4722,12 @@ interface FileReaderEventMap {
47224722

47234723
interface FileReader extends EventTarget {
47244724
readonly error: DOMException | null;
4725-
onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;
4726-
onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;
4727-
onload: ((this: FileReader, ev: ProgressEvent) => any) | null;
4728-
onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;
4729-
onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;
4730-
onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;
4725+
onabort: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
4726+
onerror: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
4727+
onload: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
4728+
onloadend: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
4729+
onloadstart: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
4730+
onprogress: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
47314731
readonly readyState: number;
47324732
readonly result: any;
47334733
abort(): void;
@@ -4752,6 +4752,10 @@ declare var FileReader: {
47524752
readonly LOADING: number;
47534753
};
47544754

4755+
interface FileReaderProgressEvent extends ProgressEvent {
4756+
readonly target: FileReader | null;
4757+
}
4758+
47554759
interface FocusEvent extends UIEvent {
47564760
readonly relatedTarget: EventTarget;
47574761
initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;
@@ -8872,6 +8876,7 @@ declare var MediaEncryptedEvent: {
88728876

88738877
interface MediaError {
88748878
readonly code: number;
8879+
readonly message: string;
88758880
readonly msExtendedCode: number;
88768881
readonly MEDIA_ERR_ABORTED: number;
88778882
readonly MEDIA_ERR_DECODE: number;
@@ -9354,6 +9359,7 @@ interface Node extends EventTarget {
93549359
readonly baseURI: string | null;
93559360
readonly childNodes: NodeListOf<Node & ChildNode>;
93569361
readonly firstChild: Node | null;
9362+
readonly isConnected: boolean;
93579363
readonly lastChild: Node | null;
93589364
readonly localName: string | null;
93599365
readonly namespaceURI: string | null;
@@ -9681,6 +9687,12 @@ declare var PannerNode: {
96819687
new(): PannerNode;
96829688
};
96839689

9690+
interface ParentNode {
9691+
readonly childElementCount: number;
9692+
readonly firstElementChild: Element | null;
9693+
readonly lastElementChild: Element | null;
9694+
}
9695+
96849696
interface ParentNode {
96859697
readonly children: HTMLCollection;
96869698
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
@@ -9691,12 +9703,6 @@ interface ParentNode {
96919703
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
96929704
}
96939705

9694-
interface ParentNode {
9695-
readonly childElementCount: number;
9696-
readonly firstElementChild: Element | null;
9697-
readonly lastElementChild: Element | null;
9698-
}
9699-
97009706
interface Path2D extends CanvasPathMethods {
97019707
}
97029708

@@ -13958,24 +13964,24 @@ interface WebGLRenderingContext {
1395813964
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView | null): void;
1395913965
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, pixels: ImageBitmap | ImageData | HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): void;
1396013966
uniform1f(location: WebGLUniformLocation | null, x: number): void;
13961-
uniform1fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;
13967+
uniform1fv(location: WebGLUniformLocation | null, v: Float32Array | ArrayLike<number>): void;
1396213968
uniform1i(location: WebGLUniformLocation | null, x: number): void;
13963-
uniform1iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;
13969+
uniform1iv(location: WebGLUniformLocation | null, v: Int32Array | ArrayLike<number>): void;
1396413970
uniform2f(location: WebGLUniformLocation | null, x: number, y: number): void;
13965-
uniform2fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;
13971+
uniform2fv(location: WebGLUniformLocation | null, v: Float32Array | ArrayLike<number>): void;
1396613972
uniform2i(location: WebGLUniformLocation | null, x: number, y: number): void;
13967-
uniform2iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;
13973+
uniform2iv(location: WebGLUniformLocation | null, v: Int32Array | ArrayLike<number>): void;
1396813974
uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;
13969-
uniform3fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;
13975+
uniform3fv(location: WebGLUniformLocation | null, v: Float32Array | ArrayLike<number>): void;
1397013976
uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;
13971-
uniform3iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;
13977+
uniform3iv(location: WebGLUniformLocation | null, v: Int32Array | ArrayLike<number>): void;
1397213978
uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;
13973-
uniform4fv(location: WebGLUniformLocation, v: Float32Array | ArrayLike<number>): void;
13979+
uniform4fv(location: WebGLUniformLocation | null, v: Float32Array | ArrayLike<number>): void;
1397413980
uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;
13975-
uniform4iv(location: WebGLUniformLocation, v: Int32Array | ArrayLike<number>): void;
13976-
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;
13977-
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;
13978-
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | ArrayLike<number>): void;
13981+
uniform4iv(location: WebGLUniformLocation | null, v: Int32Array | ArrayLike<number>): void;
13982+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: boolean, value: Float32Array | ArrayLike<number>): void;
13983+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: boolean, value: Float32Array | ArrayLike<number>): void;
13984+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: boolean, value: Float32Array | ArrayLike<number>): void;
1397913985
useProgram(program: WebGLProgram | null): void;
1398013986
validateProgram(program: WebGLProgram | null): void;
1398113987
vertexAttrib1f(indx: number, x: number): void;
@@ -15019,7 +15025,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1501915025
onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;
1502015026
onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
1502115027
onwaiting: ((this: Window, ev: Event) => any) | null;
15022-
readonly opener: any;
15028+
opener: any;
1502315029
readonly orientation: string | number;
1502415030
readonly outerHeight: number;
1502515031
readonly outerWidth: number;

src/lib/webworker.generated.d.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,12 @@ interface FileReaderEventMap {
588588

589589
interface FileReader extends EventTarget {
590590
readonly error: DOMException | null;
591-
onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;
592-
onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;
593-
onload: ((this: FileReader, ev: ProgressEvent) => any) | null;
594-
onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;
595-
onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;
596-
onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;
591+
onabort: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
592+
onerror: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
593+
onload: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
594+
onloadend: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
595+
onloadstart: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
596+
onprogress: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
597597
readonly readyState: number;
598598
readonly result: any;
599599
abort(): void;
@@ -618,6 +618,10 @@ declare var FileReader: {
618618
readonly LOADING: number;
619619
};
620620

621+
interface FileReaderProgressEvent extends ProgressEvent {
622+
readonly target: FileReader | null;
623+
}
624+
621625
interface FileReaderSync {
622626
readAsArrayBuffer(blob: Blob): any;
623627
readAsBinaryString(blob: Blob): void;

0 commit comments

Comments
 (0)