@types/web 0.0.160 → 0.0.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.160 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.160.
50
+ You can read what changed in version 0.0.162 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.162.
package/index.d.ts CHANGED
@@ -2545,7 +2545,7 @@ interface Animatable {
2545
2545
  interface AnimationEventMap {
2546
2546
  "cancel": AnimationPlaybackEvent;
2547
2547
  "finish": AnimationPlaybackEvent;
2548
- "remove": Event;
2548
+ "remove": AnimationPlaybackEvent;
2549
2549
  }
2550
2550
 
2551
2551
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */
@@ -2563,7 +2563,7 @@ interface Animation extends EventTarget {
2563
2563
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */
2564
2564
  onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
2565
2565
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
2566
- onremove: ((this: Animation, ev: Event) => any) | null;
2566
+ onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
2567
2567
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */
2568
2568
  readonly pending: boolean;
2569
2569
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */
@@ -3005,7 +3005,7 @@ declare var AudioWorklet: {
3005
3005
  };
3006
3006
 
3007
3007
  interface AudioWorkletNodeEventMap {
3008
- "processorerror": Event;
3008
+ "processorerror": ErrorEvent;
3009
3009
  }
3010
3010
 
3011
3011
  /**
@@ -3015,7 +3015,7 @@ interface AudioWorkletNodeEventMap {
3015
3015
  */
3016
3016
  interface AudioWorkletNode extends AudioNode {
3017
3017
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */
3018
- onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
3018
+ onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null;
3019
3019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */
3020
3020
  readonly parameters: AudioParamMap;
3021
3021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */
@@ -8820,19 +8820,19 @@ declare var FontFace: {
8820
8820
  };
8821
8821
 
8822
8822
  interface FontFaceSetEventMap {
8823
- "loading": Event;
8824
- "loadingdone": Event;
8825
- "loadingerror": Event;
8823
+ "loading": FontFaceSetLoadEvent;
8824
+ "loadingdone": FontFaceSetLoadEvent;
8825
+ "loadingerror": FontFaceSetLoadEvent;
8826
8826
  }
8827
8827
 
8828
8828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
8829
8829
  interface FontFaceSet extends EventTarget {
8830
8830
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
8831
- onloading: ((this: FontFaceSet, ev: Event) => any) | null;
8831
+ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8832
8832
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
8833
- onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
8833
+ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8834
8834
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
8835
- onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
8835
+ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8836
8836
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
8837
8837
  readonly ready: Promise<FontFaceSet>;
8838
8838
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
@@ -13375,8 +13375,8 @@ declare var HTMLUnknownElement: {
13375
13375
  };
13376
13376
 
13377
13377
  interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
13378
- "enterpictureinpicture": Event;
13379
- "leavepictureinpicture": Event;
13378
+ "enterpictureinpicture": PictureInPictureEvent;
13379
+ "leavepictureinpicture": PictureInPictureEvent;
13380
13380
  }
13381
13381
 
13382
13382
  /**
@@ -13394,9 +13394,9 @@ interface HTMLVideoElement extends HTMLMediaElement {
13394
13394
  */
13395
13395
  height: number;
13396
13396
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
13397
- onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13397
+ onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13398
13398
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
13399
- onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13399
+ onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13400
13400
  /** 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. */
13401
13401
  playsInline: boolean;
13402
13402
  /**
@@ -14687,7 +14687,7 @@ declare var LockManager: {
14687
14687
  };
14688
14688
 
14689
14689
  interface MIDIAccessEventMap {
14690
- "statechange": Event;
14690
+ "statechange": MIDIConnectionEvent;
14691
14691
  }
14692
14692
 
14693
14693
  /**
@@ -14699,7 +14699,7 @@ interface MIDIAccess extends EventTarget {
14699
14699
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
14700
14700
  readonly inputs: MIDIInputMap;
14701
14701
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
14702
- onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
14702
+ onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null;
14703
14703
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
14704
14704
  readonly outputs: MIDIOutputMap;
14705
14705
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
@@ -15210,7 +15210,7 @@ declare var MediaQueryListEvent: {
15210
15210
 
15211
15211
  interface MediaRecorderEventMap {
15212
15212
  "dataavailable": BlobEvent;
15213
- "error": Event;
15213
+ "error": ErrorEvent;
15214
15214
  "pause": Event;
15215
15215
  "resume": Event;
15216
15216
  "start": Event;
@@ -15226,7 +15226,7 @@ interface MediaRecorder extends EventTarget {
15226
15226
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
15227
15227
  ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
15228
15228
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
15229
- onerror: ((this: MediaRecorder, ev: Event) => any) | null;
15229
+ onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null;
15230
15230
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
15231
15231
  onpause: ((this: MediaRecorder, ev: Event) => any) | null;
15232
15232
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
@@ -16979,9 +16979,9 @@ declare var PaymentMethodChangeEvent: {
16979
16979
  };
16980
16980
 
16981
16981
  interface PaymentRequestEventMap {
16982
- "paymentmethodchange": Event;
16983
- "shippingaddresschange": Event;
16984
- "shippingoptionchange": Event;
16982
+ "paymentmethodchange": PaymentMethodChangeEvent;
16983
+ "shippingaddresschange": PaymentRequestUpdateEvent;
16984
+ "shippingoptionchange": PaymentRequestUpdateEvent;
16985
16985
  }
16986
16986
 
16987
16987
  /**
@@ -16994,19 +16994,19 @@ interface PaymentRequest extends EventTarget {
16994
16994
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
16995
16995
  readonly id: string;
16996
16996
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
16997
- onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
16997
+ onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null;
16998
16998
  /**
16999
16999
  * @deprecated
17000
17000
  *
17001
17001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
17002
17002
  */
17003
- onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
17003
+ onshippingaddresschange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
17004
17004
  /**
17005
17005
  * @deprecated
17006
17006
  *
17007
17007
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
17008
17008
  */
17009
- onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
17009
+ onshippingoptionchange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
17010
17010
  /**
17011
17011
  * @deprecated
17012
17012
  *
@@ -17059,7 +17059,7 @@ declare var PaymentRequestUpdateEvent: {
17059
17059
  };
17060
17060
 
17061
17061
  interface PaymentResponseEventMap {
17062
- "payerdetailchange": Event;
17062
+ "payerdetailchange": PaymentRequestUpdateEvent;
17063
17063
  }
17064
17064
 
17065
17065
  /**
@@ -17074,7 +17074,7 @@ interface PaymentResponse extends EventTarget {
17074
17074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
17075
17075
  readonly methodName: string;
17076
17076
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */
17077
- onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
17077
+ onpayerdetailchange: ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) | null;
17078
17078
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail) */
17079
17079
  readonly payerEmail: string | null;
17080
17080
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName) */
@@ -17989,7 +17989,7 @@ interface RTCDataChannelEventMap {
17989
17989
  "bufferedamountlow": Event;
17990
17990
  "close": Event;
17991
17991
  "closing": Event;
17992
- "error": Event;
17992
+ "error": RTCErrorEvent;
17993
17993
  "message": MessageEvent;
17994
17994
  "open": Event;
17995
17995
  }
@@ -18019,7 +18019,7 @@ interface RTCDataChannel extends EventTarget {
18019
18019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
18020
18020
  onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
18021
18021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
18022
- onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
18022
+ onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;
18023
18023
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
18024
18024
  onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
18025
18025
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
@@ -18060,7 +18060,7 @@ declare var RTCDataChannelEvent: {
18060
18060
  };
18061
18061
 
18062
18062
  interface RTCDtlsTransportEventMap {
18063
- "error": Event;
18063
+ "error": RTCErrorEvent;
18064
18064
  "statechange": Event;
18065
18065
  }
18066
18066
 
@@ -18069,7 +18069,7 @@ interface RTCDtlsTransport extends EventTarget {
18069
18069
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
18070
18070
  readonly iceTransport: RTCIceTransport;
18071
18071
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
18072
- onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18072
+ onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
18073
18073
  onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18074
18074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
18075
18075
  readonly state: RTCDtlsTransportState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.160",
3
+ "version": "0.0.162",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -2545,7 +2545,7 @@ interface Animatable {
2545
2545
  interface AnimationEventMap {
2546
2546
  "cancel": AnimationPlaybackEvent;
2547
2547
  "finish": AnimationPlaybackEvent;
2548
- "remove": Event;
2548
+ "remove": AnimationPlaybackEvent;
2549
2549
  }
2550
2550
 
2551
2551
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */
@@ -2563,7 +2563,7 @@ interface Animation extends EventTarget {
2563
2563
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */
2564
2564
  onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
2565
2565
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
2566
- onremove: ((this: Animation, ev: Event) => any) | null;
2566
+ onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
2567
2567
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */
2568
2568
  readonly pending: boolean;
2569
2569
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */
@@ -3005,7 +3005,7 @@ declare var AudioWorklet: {
3005
3005
  };
3006
3006
 
3007
3007
  interface AudioWorkletNodeEventMap {
3008
- "processorerror": Event;
3008
+ "processorerror": ErrorEvent;
3009
3009
  }
3010
3010
 
3011
3011
  /**
@@ -3015,7 +3015,7 @@ interface AudioWorkletNodeEventMap {
3015
3015
  */
3016
3016
  interface AudioWorkletNode extends AudioNode {
3017
3017
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */
3018
- onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
3018
+ onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null;
3019
3019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */
3020
3020
  readonly parameters: AudioParamMap;
3021
3021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */
@@ -8820,19 +8820,19 @@ declare var FontFace: {
8820
8820
  };
8821
8821
 
8822
8822
  interface FontFaceSetEventMap {
8823
- "loading": Event;
8824
- "loadingdone": Event;
8825
- "loadingerror": Event;
8823
+ "loading": FontFaceSetLoadEvent;
8824
+ "loadingdone": FontFaceSetLoadEvent;
8825
+ "loadingerror": FontFaceSetLoadEvent;
8826
8826
  }
8827
8827
 
8828
8828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
8829
8829
  interface FontFaceSet extends EventTarget {
8830
8830
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
8831
- onloading: ((this: FontFaceSet, ev: Event) => any) | null;
8831
+ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8832
8832
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
8833
- onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
8833
+ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8834
8834
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
8835
- onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
8835
+ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8836
8836
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
8837
8837
  readonly ready: Promise<FontFaceSet>;
8838
8838
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
@@ -13375,8 +13375,8 @@ declare var HTMLUnknownElement: {
13375
13375
  };
13376
13376
 
13377
13377
  interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
13378
- "enterpictureinpicture": Event;
13379
- "leavepictureinpicture": Event;
13378
+ "enterpictureinpicture": PictureInPictureEvent;
13379
+ "leavepictureinpicture": PictureInPictureEvent;
13380
13380
  }
13381
13381
 
13382
13382
  /**
@@ -13394,9 +13394,9 @@ interface HTMLVideoElement extends HTMLMediaElement {
13394
13394
  */
13395
13395
  height: number;
13396
13396
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
13397
- onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13397
+ onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13398
13398
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
13399
- onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13399
+ onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13400
13400
  /** 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. */
13401
13401
  playsInline: boolean;
13402
13402
  /**
@@ -14687,7 +14687,7 @@ declare var LockManager: {
14687
14687
  };
14688
14688
 
14689
14689
  interface MIDIAccessEventMap {
14690
- "statechange": Event;
14690
+ "statechange": MIDIConnectionEvent;
14691
14691
  }
14692
14692
 
14693
14693
  /**
@@ -14699,7 +14699,7 @@ interface MIDIAccess extends EventTarget {
14699
14699
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
14700
14700
  readonly inputs: MIDIInputMap;
14701
14701
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
14702
- onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
14702
+ onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null;
14703
14703
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
14704
14704
  readonly outputs: MIDIOutputMap;
14705
14705
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
@@ -15210,7 +15210,7 @@ declare var MediaQueryListEvent: {
15210
15210
 
15211
15211
  interface MediaRecorderEventMap {
15212
15212
  "dataavailable": BlobEvent;
15213
- "error": Event;
15213
+ "error": ErrorEvent;
15214
15214
  "pause": Event;
15215
15215
  "resume": Event;
15216
15216
  "start": Event;
@@ -15226,7 +15226,7 @@ interface MediaRecorder extends EventTarget {
15226
15226
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
15227
15227
  ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
15228
15228
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
15229
- onerror: ((this: MediaRecorder, ev: Event) => any) | null;
15229
+ onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null;
15230
15230
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
15231
15231
  onpause: ((this: MediaRecorder, ev: Event) => any) | null;
15232
15232
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
@@ -16979,9 +16979,9 @@ declare var PaymentMethodChangeEvent: {
16979
16979
  };
16980
16980
 
16981
16981
  interface PaymentRequestEventMap {
16982
- "paymentmethodchange": Event;
16983
- "shippingaddresschange": Event;
16984
- "shippingoptionchange": Event;
16982
+ "paymentmethodchange": PaymentMethodChangeEvent;
16983
+ "shippingaddresschange": PaymentRequestUpdateEvent;
16984
+ "shippingoptionchange": PaymentRequestUpdateEvent;
16985
16985
  }
16986
16986
 
16987
16987
  /**
@@ -16994,19 +16994,19 @@ interface PaymentRequest extends EventTarget {
16994
16994
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
16995
16995
  readonly id: string;
16996
16996
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
16997
- onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
16997
+ onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null;
16998
16998
  /**
16999
16999
  * @deprecated
17000
17000
  *
17001
17001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
17002
17002
  */
17003
- onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
17003
+ onshippingaddresschange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
17004
17004
  /**
17005
17005
  * @deprecated
17006
17006
  *
17007
17007
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
17008
17008
  */
17009
- onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
17009
+ onshippingoptionchange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
17010
17010
  /**
17011
17011
  * @deprecated
17012
17012
  *
@@ -17059,7 +17059,7 @@ declare var PaymentRequestUpdateEvent: {
17059
17059
  };
17060
17060
 
17061
17061
  interface PaymentResponseEventMap {
17062
- "payerdetailchange": Event;
17062
+ "payerdetailchange": PaymentRequestUpdateEvent;
17063
17063
  }
17064
17064
 
17065
17065
  /**
@@ -17074,7 +17074,7 @@ interface PaymentResponse extends EventTarget {
17074
17074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
17075
17075
  readonly methodName: string;
17076
17076
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */
17077
- onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
17077
+ onpayerdetailchange: ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) | null;
17078
17078
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail) */
17079
17079
  readonly payerEmail: string | null;
17080
17080
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName) */
@@ -17989,7 +17989,7 @@ interface RTCDataChannelEventMap {
17989
17989
  "bufferedamountlow": Event;
17990
17990
  "close": Event;
17991
17991
  "closing": Event;
17992
- "error": Event;
17992
+ "error": RTCErrorEvent;
17993
17993
  "message": MessageEvent;
17994
17994
  "open": Event;
17995
17995
  }
@@ -18019,7 +18019,7 @@ interface RTCDataChannel extends EventTarget {
18019
18019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
18020
18020
  onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
18021
18021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
18022
- onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
18022
+ onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;
18023
18023
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
18024
18024
  onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
18025
18025
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
@@ -18060,7 +18060,7 @@ declare var RTCDataChannelEvent: {
18060
18060
  };
18061
18061
 
18062
18062
  interface RTCDtlsTransportEventMap {
18063
- "error": Event;
18063
+ "error": RTCErrorEvent;
18064
18064
  "statechange": Event;
18065
18065
  }
18066
18066
 
@@ -18069,7 +18069,7 @@ interface RTCDtlsTransport extends EventTarget {
18069
18069
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
18070
18070
  readonly iceTransport: RTCIceTransport;
18071
18071
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
18072
- onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18072
+ onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
18073
18073
  onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18074
18074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
18075
18075
  readonly state: RTCDtlsTransportState;