@@ -4527,7 +4527,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndEleme
4527
4527
"fullscreenerror": Event;
4528
4528
"pointerlockchange": Event;
4529
4529
"pointerlockerror": Event;
4530
- "readystatechange": ProgressEvent<Document> ;
4530
+ "readystatechange": Event ;
4531
4531
"visibilitychange": Event;
4532
4532
}
4533
4533
@@ -4682,7 +4682,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4682
4682
* Fires when the state of the object has changed.
4683
4683
* @param ev The event
4684
4684
*/
4685
- onreadystatechange: ((this: Document, ev: ProgressEvent<Document> ) => any) | null;
4685
+ onreadystatechange: ((this: Document, ev: Event ) => any) | null;
4686
4686
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
4687
4687
/**
4688
4688
* Returns document's origin.
@@ -7667,7 +7667,7 @@ declare var HTMLMarqueeElement: {
7667
7667
7668
7668
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
7669
7669
"encrypted": MediaEncryptedEvent;
7670
- "msneedkey": Event ;
7670
+ "msneedkey": MSMediaKeyNeededEvent ;
7671
7671
"waitingforkey": Event;
7672
7672
}
7673
7673
@@ -7764,7 +7764,7 @@ interface HTMLMediaElement extends HTMLElement {
7764
7764
readonly networkState: number;
7765
7765
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
7766
7766
/** @deprecated */
7767
- onmsneedkey: ((this: HTMLMediaElement, ev: Event ) => any) | null;
7767
+ onmsneedkey: ((this: HTMLMediaElement, ev: MSMediaKeyNeededEvent ) => any) | null;
7768
7768
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
7769
7769
/**
7770
7770
* Gets a flag that specifies whether playback is paused.
@@ -10331,7 +10331,7 @@ declare var MediaKeyMessageEvent: {
10331
10331
10332
10332
interface MediaKeySessionEventMap {
10333
10333
"keystatuseschange": Event;
10334
- "message": MessageEvent ;
10334
+ "message": MediaKeyMessageEvent ;
10335
10335
}
10336
10336
10337
10337
/** This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). */
@@ -10340,7 +10340,7 @@ interface MediaKeySession extends EventTarget {
10340
10340
readonly expiration: number;
10341
10341
readonly keyStatuses: MediaKeyStatusMap;
10342
10342
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
10343
- onmessage: ((this: MediaKeySession, ev: MessageEvent ) => any) | null;
10343
+ onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent ) => any) | null;
10344
10344
readonly sessionId: string;
10345
10345
close(): Promise<void>;
10346
10346
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
@@ -10361,7 +10361,7 @@ declare var MediaKeySession: {
10361
10361
/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */
10362
10362
interface MediaKeyStatusMap {
10363
10363
readonly size: number;
10364
- get(keyId: BufferSource): any ;
10364
+ get(keyId: BufferSource): MediaKeyStatus | undefined ;
10365
10365
has(keyId: BufferSource): boolean;
10366
10366
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
10367
10367
}
@@ -15888,11 +15888,15 @@ declare var TextTrackCueList: {
15888
15888
15889
15889
interface TextTrackListEventMap {
15890
15890
"addtrack": TrackEvent;
15891
+ "change": Event;
15892
+ "removetrack": TrackEvent;
15891
15893
}
15892
15894
15893
15895
interface TextTrackList extends EventTarget {
15894
15896
readonly length: number;
15895
15897
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
15898
+ onchange: ((this: TextTrackList, ev: Event) => any) | null;
15899
+ onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
15896
15900
item(index: number): TextTrack;
15897
15901
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15898
15902
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
0 commit comments