@@ -2543,7 +2543,7 @@ interface Animatable {
2543
2543
interface AnimationEventMap {
2544
2544
"cancel": AnimationPlaybackEvent;
2545
2545
"finish": AnimationPlaybackEvent;
2546
- "remove": Event ;
2546
+ "remove": AnimationPlaybackEvent ;
2547
2547
}
2548
2548
2549
2549
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */
@@ -2561,7 +2561,7 @@ interface Animation extends EventTarget {
2561
2561
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */
2562
2562
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
2563
2563
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
2564
- onremove: ((this: Animation, ev: Event ) => any) | null;
2564
+ onremove: ((this: Animation, ev: AnimationPlaybackEvent ) => any) | null;
2565
2565
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */
2566
2566
readonly pending: boolean;
2567
2567
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */
@@ -3003,7 +3003,7 @@ declare var AudioWorklet: {
3003
3003
};
3004
3004
3005
3005
interface AudioWorkletNodeEventMap {
3006
- "processorerror": Event ;
3006
+ "processorerror": ErrorEvent ;
3007
3007
}
3008
3008
3009
3009
/**
@@ -3013,7 +3013,7 @@ interface AudioWorkletNodeEventMap {
3013
3013
*/
3014
3014
interface AudioWorkletNode extends AudioNode {
3015
3015
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */
3016
- onprocessorerror: ((this: AudioWorkletNode, ev: Event ) => any) | null;
3016
+ onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent ) => any) | null;
3017
3017
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */
3018
3018
readonly parameters: AudioParamMap;
3019
3019
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */
@@ -8818,19 +8818,19 @@ declare var FontFace: {
8818
8818
};
8819
8819
8820
8820
interface FontFaceSetEventMap {
8821
- "loading": Event ;
8822
- "loadingdone": Event ;
8823
- "loadingerror": Event ;
8821
+ "loading": FontFaceSetLoadEvent ;
8822
+ "loadingdone": FontFaceSetLoadEvent ;
8823
+ "loadingerror": FontFaceSetLoadEvent ;
8824
8824
}
8825
8825
8826
8826
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
8827
8827
interface FontFaceSet extends EventTarget {
8828
8828
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
8829
- onloading: ((this: FontFaceSet, ev: Event ) => any) | null;
8829
+ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent ) => any) | null;
8830
8830
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
8831
- onloadingdone: ((this: FontFaceSet, ev: Event ) => any) | null;
8831
+ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent ) => any) | null;
8832
8832
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
8833
- onloadingerror: ((this: FontFaceSet, ev: Event ) => any) | null;
8833
+ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent ) => any) | null;
8834
8834
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
8835
8835
readonly ready: Promise<FontFaceSet>;
8836
8836
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
@@ -13373,8 +13373,8 @@ declare var HTMLUnknownElement: {
13373
13373
};
13374
13374
13375
13375
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
13376
- "enterpictureinpicture": Event ;
13377
- "leavepictureinpicture": Event ;
13376
+ "enterpictureinpicture": PictureInPictureEvent ;
13377
+ "leavepictureinpicture": PictureInPictureEvent ;
13378
13378
}
13379
13379
13380
13380
/**
@@ -13392,9 +13392,9 @@ interface HTMLVideoElement extends HTMLMediaElement {
13392
13392
*/
13393
13393
height: number;
13394
13394
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
13395
- onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event ) => any) | null;
13395
+ onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent ) => any) | null;
13396
13396
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
13397
- onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event ) => any) | null;
13397
+ onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent ) => any) | null;
13398
13398
/** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */
13399
13399
playsInline: boolean;
13400
13400
/**
@@ -14685,7 +14685,7 @@ declare var LockManager: {
14685
14685
};
14686
14686
14687
14687
interface MIDIAccessEventMap {
14688
- "statechange": Event ;
14688
+ "statechange": MIDIConnectionEvent ;
14689
14689
}
14690
14690
14691
14691
/**
@@ -14697,7 +14697,7 @@ interface MIDIAccess extends EventTarget {
14697
14697
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
14698
14698
readonly inputs: MIDIInputMap;
14699
14699
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
14700
- onstatechange: ((this: MIDIAccess, ev: Event ) => any) | null;
14700
+ onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent ) => any) | null;
14701
14701
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
14702
14702
readonly outputs: MIDIOutputMap;
14703
14703
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
@@ -15208,7 +15208,7 @@ declare var MediaQueryListEvent: {
15208
15208
15209
15209
interface MediaRecorderEventMap {
15210
15210
"dataavailable": BlobEvent;
15211
- "error": Event ;
15211
+ "error": ErrorEvent ;
15212
15212
"pause": Event;
15213
15213
"resume": Event;
15214
15214
"start": Event;
@@ -15224,7 +15224,7 @@ interface MediaRecorder extends EventTarget {
15224
15224
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
15225
15225
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
15226
15226
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
15227
- onerror: ((this: MediaRecorder, ev: Event ) => any) | null;
15227
+ onerror: ((this: MediaRecorder, ev: ErrorEvent ) => any) | null;
15228
15228
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
15229
15229
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
15230
15230
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
@@ -16977,7 +16977,7 @@ declare var PaymentMethodChangeEvent: {
16977
16977
};
16978
16978
16979
16979
interface PaymentRequestEventMap {
16980
- "paymentmethodchange": Event ;
16980
+ "paymentmethodchange": PaymentMethodChangeEvent ;
16981
16981
"shippingaddresschange": Event;
16982
16982
"shippingoptionchange": Event;
16983
16983
}
@@ -16992,7 +16992,7 @@ interface PaymentRequest extends EventTarget {
16992
16992
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
16993
16993
readonly id: string;
16994
16994
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
16995
- onpaymentmethodchange: ((this: PaymentRequest, ev: Event ) => any) | null;
16995
+ onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent ) => any) | null;
16996
16996
/**
16997
16997
* @deprecated
16998
16998
*
@@ -17987,7 +17987,7 @@ interface RTCDataChannelEventMap {
17987
17987
"bufferedamountlow": Event;
17988
17988
"close": Event;
17989
17989
"closing": Event;
17990
- "error": Event ;
17990
+ "error": RTCErrorEvent ;
17991
17991
"message": MessageEvent;
17992
17992
"open": Event;
17993
17993
}
@@ -18017,7 +18017,7 @@ interface RTCDataChannel extends EventTarget {
18017
18017
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
18018
18018
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
18019
18019
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
18020
- onerror: ((this: RTCDataChannel, ev: Event ) => any) | null;
18020
+ onerror: ((this: RTCDataChannel, ev: RTCErrorEvent ) => any) | null;
18021
18021
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
18022
18022
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
18023
18023
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
@@ -18058,7 +18058,7 @@ declare var RTCDataChannelEvent: {
18058
18058
};
18059
18059
18060
18060
interface RTCDtlsTransportEventMap {
18061
- "error": Event ;
18061
+ "error": RTCErrorEvent ;
18062
18062
"statechange": Event;
18063
18063
}
18064
18064
@@ -18067,7 +18067,7 @@ interface RTCDtlsTransport extends EventTarget {
18067
18067
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
18068
18068
readonly iceTransport: RTCIceTransport;
18069
18069
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
18070
- onerror: ((this: RTCDtlsTransport, ev: Event ) => any) | null;
18070
+ onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent ) => any) | null;
18071
18071
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18072
18072
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
18073
18073
readonly state: RTCDtlsTransportState;
0 commit comments