@types/web 0.0.159 → 0.0.161

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.159 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.159.
50
+ You can read what changed in version 0.0.161 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.161.
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) */
@@ -4700,12 +4700,19 @@ interface CSSStyleDeclaration {
4700
4700
  stopOpacity: string;
4701
4701
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */
4702
4702
  stroke: string;
4703
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */
4703
4704
  strokeDasharray: string;
4705
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */
4704
4706
  strokeDashoffset: string;
4707
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */
4705
4708
  strokeLinecap: string;
4709
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */
4706
4710
  strokeLinejoin: string;
4711
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */
4707
4712
  strokeMiterlimit: string;
4713
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */
4708
4714
  strokeOpacity: string;
4715
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */
4709
4716
  strokeWidth: string;
4710
4717
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */
4711
4718
  tabSize: string;
@@ -8813,19 +8820,19 @@ declare var FontFace: {
8813
8820
  };
8814
8821
 
8815
8822
  interface FontFaceSetEventMap {
8816
- "loading": Event;
8817
- "loadingdone": Event;
8818
- "loadingerror": Event;
8823
+ "loading": FontFaceSetLoadEvent;
8824
+ "loadingdone": FontFaceSetLoadEvent;
8825
+ "loadingerror": FontFaceSetLoadEvent;
8819
8826
  }
8820
8827
 
8821
8828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
8822
8829
  interface FontFaceSet extends EventTarget {
8823
8830
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
8824
- onloading: ((this: FontFaceSet, ev: Event) => any) | null;
8831
+ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8825
8832
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
8826
- onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
8833
+ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8827
8834
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
8828
- onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
8835
+ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8829
8836
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
8830
8837
  readonly ready: Promise<FontFaceSet>;
8831
8838
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
@@ -9919,7 +9926,11 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
9919
9926
  formTarget: string;
9920
9927
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
9921
9928
  readonly labels: NodeListOf<HTMLLabelElement>;
9922
- /** Sets or retrieves the name of the object. */
9929
+ /**
9930
+ * Sets or retrieves the name of the object.
9931
+ *
9932
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
9933
+ */
9923
9934
  name: string;
9924
9935
  /**
9925
9936
  * Gets the classification and default behavior of the button.
@@ -9931,12 +9942,21 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
9931
9942
  readonly validationMessage: string;
9932
9943
  /** Returns a ValidityState object that represents the validity states of an element. */
9933
9944
  readonly validity: ValidityState;
9934
- /** Sets or retrieves the default or selected value of the control. */
9945
+ /**
9946
+ * Sets or retrieves the default or selected value of the control.
9947
+ *
9948
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
9949
+ */
9935
9950
  value: string;
9936
9951
  /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
9937
9952
  readonly willValidate: boolean;
9938
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
9953
+ /**
9954
+ * Returns whether a form will validate when it is submitted, without having to submit it.
9955
+ *
9956
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity)
9957
+ */
9939
9958
  checkValidity(): boolean;
9959
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */
9940
9960
  reportValidity(): boolean;
9941
9961
  /**
9942
9962
  * Sets a custom error message that is displayed when a form is submitted.
@@ -10107,6 +10127,7 @@ declare var HTMLDataListElement: {
10107
10127
 
10108
10128
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */
10109
10129
  interface HTMLDetailsElement extends HTMLElement {
10130
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
10110
10131
  name: string;
10111
10132
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
10112
10133
  open: boolean;
@@ -10330,6 +10351,7 @@ interface HTMLFieldSetElement extends HTMLElement {
10330
10351
  readonly elements: HTMLCollection;
10331
10352
  /** Retrieves a reference to the form that the object is embedded in. */
10332
10353
  readonly form: HTMLFormElement | null;
10354
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */
10333
10355
  name: string;
10334
10356
  /** Returns the string "fieldset". */
10335
10357
  readonly type: string;
@@ -10339,8 +10361,13 @@ interface HTMLFieldSetElement extends HTMLElement {
10339
10361
  readonly validity: ValidityState;
10340
10362
  /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
10341
10363
  readonly willValidate: boolean;
10342
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
10364
+ /**
10365
+ * Returns whether a form will validate when it is submitted, without having to submit it.
10366
+ *
10367
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity)
10368
+ */
10343
10369
  checkValidity(): boolean;
10370
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */
10344
10371
  reportValidity(): boolean;
10345
10372
  /**
10346
10373
  * Sets a custom error message that is displayed when a form is submitted.
@@ -10483,7 +10510,11 @@ interface HTMLFormElement extends HTMLElement {
10483
10510
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
10484
10511
  */
10485
10512
  target: string;
10486
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
10513
+ /**
10514
+ * Returns whether a form will validate when it is submitted, without having to submit it.
10515
+ *
10516
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
10517
+ */
10487
10518
  checkValidity(): boolean;
10488
10519
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */
10489
10520
  reportValidity(): boolean;
@@ -11062,7 +11093,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11062
11093
  checked: boolean;
11063
11094
  /** Sets or retrieves the state of the check box or radio button. */
11064
11095
  defaultChecked: boolean;
11065
- /** Sets or retrieves the initial contents of the object. */
11096
+ /**
11097
+ * Sets or retrieves the initial contents of the object.
11098
+ *
11099
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
11100
+ */
11066
11101
  defaultValue: string;
11067
11102
  dirName: string;
11068
11103
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
@@ -11091,14 +11126,31 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11091
11126
  indeterminate: boolean;
11092
11127
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */
11093
11128
  readonly labels: NodeListOf<HTMLLabelElement> | null;
11094
- /** Specifies the ID of a pre-defined datalist of options for an input element. */
11129
+ /**
11130
+ * Specifies the ID of a pre-defined datalist of options for an input element.
11131
+ *
11132
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
11133
+ */
11095
11134
  readonly list: HTMLDataListElement | null;
11096
- /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
11135
+ /**
11136
+ * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
11137
+ *
11138
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
11139
+ */
11097
11140
  max: string;
11098
- /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
11141
+ /**
11142
+ * Sets or retrieves the maximum number of characters that the user can enter in a text control.
11143
+ *
11144
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
11145
+ */
11099
11146
  maxLength: number;
11100
- /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
11147
+ /**
11148
+ * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
11149
+ *
11150
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
11151
+ */
11101
11152
  min: string;
11153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
11102
11154
  minLength: number;
11103
11155
  /**
11104
11156
  * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
@@ -11106,7 +11158,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11106
11158
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)
11107
11159
  */
11108
11160
  multiple: boolean;
11109
- /** Sets or retrieves the name of the object. */
11161
+ /**
11162
+ * Sets or retrieves the name of the object.
11163
+ *
11164
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name)
11165
+ */
11110
11166
  name: string;
11111
11167
  /** Gets or sets a string containing a regular expression that the user's input must match. */
11112
11168
  pattern: string;
@@ -11132,7 +11188,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11132
11188
  size: number;
11133
11189
  /** The address or URL of the a media resource that is to be considered. */
11134
11190
  src: string;
11135
- /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
11191
+ /**
11192
+ * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
11193
+ *
11194
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step)
11195
+ */
11136
11196
  step: string;
11137
11197
  /**
11138
11198
  * Returns the content type of the object.
@@ -11752,13 +11812,19 @@ declare var HTMLMetaElement: {
11752
11812
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)
11753
11813
  */
11754
11814
  interface HTMLMeterElement extends HTMLElement {
11815
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */
11755
11816
  high: number;
11756
11817
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */
11757
11818
  readonly labels: NodeListOf<HTMLLabelElement>;
11819
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */
11758
11820
  low: number;
11821
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */
11759
11822
  max: number;
11823
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */
11760
11824
  min: number;
11825
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */
11761
11826
  optimum: number;
11827
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */
11762
11828
  value: number;
11763
11829
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11764
11830
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -11938,6 +12004,7 @@ interface HTMLObjectElement extends HTMLElement {
11938
12004
  */
11939
12005
  checkValidity(): boolean;
11940
12006
  getSVGDocument(): Document | null;
12007
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */
11941
12008
  reportValidity(): boolean;
11942
12009
  /**
11943
12010
  * Sets a custom error message that is displayed when a form is submitted.
@@ -11996,7 +12063,11 @@ interface HTMLOptionElement extends HTMLElement {
11996
12063
  selected: boolean;
11997
12064
  /** Sets or retrieves the text string specified by the option tag. */
11998
12065
  text: string;
11999
- /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
12066
+ /**
12067
+ * Sets or retrieves the value which is returned to the server when the form control is submitted.
12068
+ *
12069
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)
12070
+ */
12000
12071
  value: string;
12001
12072
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
12002
12073
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12074,6 +12145,7 @@ interface HTMLOutputElement extends HTMLElement {
12074
12145
  readonly htmlFor: DOMTokenList;
12075
12146
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
12076
12147
  readonly labels: NodeListOf<HTMLLabelElement>;
12148
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
12077
12149
  name: string;
12078
12150
  /** Returns the string "output". */
12079
12151
  readonly type: string;
@@ -12083,10 +12155,14 @@ interface HTMLOutputElement extends HTMLElement {
12083
12155
  * Returns the element's current value.
12084
12156
  *
12085
12157
  * Can be set, to change the value.
12158
+ *
12159
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
12086
12160
  */
12087
12161
  value: string;
12088
12162
  readonly willValidate: boolean;
12163
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */
12089
12164
  checkValidity(): boolean;
12165
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */
12090
12166
  reportValidity(): boolean;
12091
12167
  setCustomValidity(error: string): void;
12092
12168
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12347,7 +12423,11 @@ interface HTMLSelectElement extends HTMLElement {
12347
12423
  length: number;
12348
12424
  /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
12349
12425
  multiple: boolean;
12350
- /** Sets or retrieves the name of the object. */
12426
+ /**
12427
+ * Sets or retrieves the name of the object.
12428
+ *
12429
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
12430
+ */
12351
12431
  name: string;
12352
12432
  /**
12353
12433
  * Returns an HTMLOptionsCollection of the list of options.
@@ -12422,6 +12502,7 @@ interface HTMLSelectElement extends HTMLElement {
12422
12502
  */
12423
12503
  remove(): void;
12424
12504
  remove(index: number): void;
12505
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */
12425
12506
  reportValidity(): boolean;
12426
12507
  /**
12427
12508
  * Sets a custom error message that is displayed when a form is submitted.
@@ -13104,7 +13185,11 @@ interface HTMLTextAreaElement extends HTMLElement {
13104
13185
  /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
13105
13186
  maxLength: number;
13106
13187
  minLength: number;
13107
- /** Sets or retrieves the name of the object. */
13188
+ /**
13189
+ * Sets or retrieves the name of the object.
13190
+ *
13191
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name)
13192
+ */
13108
13193
  name: string;
13109
13194
  /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
13110
13195
  placeholder: string;
@@ -13130,14 +13215,23 @@ interface HTMLTextAreaElement extends HTMLElement {
13130
13215
  readonly validationMessage: string;
13131
13216
  /** Returns a ValidityState object that represents the validity states of an element. */
13132
13217
  readonly validity: ValidityState;
13133
- /** Retrieves or sets the text in the entry field of the textArea element. */
13218
+ /**
13219
+ * Retrieves or sets the text in the entry field of the textArea element.
13220
+ *
13221
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value)
13222
+ */
13134
13223
  value: string;
13135
13224
  /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
13136
13225
  readonly willValidate: boolean;
13137
13226
  /** Sets or retrieves how to handle wordwrapping in the object. */
13138
13227
  wrap: string;
13139
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
13228
+ /**
13229
+ * Returns whether a form will validate when it is submitted, without having to submit it.
13230
+ *
13231
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity)
13232
+ */
13140
13233
  checkValidity(): boolean;
13234
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */
13141
13235
  reportValidity(): boolean;
13142
13236
  /** Highlights the input area of a form element. */
13143
13237
  select(): void;
@@ -13281,8 +13375,8 @@ declare var HTMLUnknownElement: {
13281
13375
  };
13282
13376
 
13283
13377
  interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
13284
- "enterpictureinpicture": Event;
13285
- "leavepictureinpicture": Event;
13378
+ "enterpictureinpicture": PictureInPictureEvent;
13379
+ "leavepictureinpicture": PictureInPictureEvent;
13286
13380
  }
13287
13381
 
13288
13382
  /**
@@ -13300,9 +13394,9 @@ interface HTMLVideoElement extends HTMLMediaElement {
13300
13394
  */
13301
13395
  height: number;
13302
13396
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
13303
- onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13397
+ onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13304
13398
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
13305
- onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13399
+ onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13306
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. */
13307
13401
  playsInline: boolean;
13308
13402
  /**
@@ -14593,7 +14687,7 @@ declare var LockManager: {
14593
14687
  };
14594
14688
 
14595
14689
  interface MIDIAccessEventMap {
14596
- "statechange": Event;
14690
+ "statechange": MIDIConnectionEvent;
14597
14691
  }
14598
14692
 
14599
14693
  /**
@@ -14605,7 +14699,7 @@ interface MIDIAccess extends EventTarget {
14605
14699
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
14606
14700
  readonly inputs: MIDIInputMap;
14607
14701
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
14608
- onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
14702
+ onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null;
14609
14703
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
14610
14704
  readonly outputs: MIDIOutputMap;
14611
14705
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
@@ -15116,7 +15210,7 @@ declare var MediaQueryListEvent: {
15116
15210
 
15117
15211
  interface MediaRecorderEventMap {
15118
15212
  "dataavailable": BlobEvent;
15119
- "error": Event;
15213
+ "error": ErrorEvent;
15120
15214
  "pause": Event;
15121
15215
  "resume": Event;
15122
15216
  "start": Event;
@@ -15132,7 +15226,7 @@ interface MediaRecorder extends EventTarget {
15132
15226
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
15133
15227
  ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
15134
15228
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
15135
- onerror: ((this: MediaRecorder, ev: Event) => any) | null;
15229
+ onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null;
15136
15230
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
15137
15231
  onpause: ((this: MediaRecorder, ev: Event) => any) | null;
15138
15232
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
@@ -16885,7 +16979,7 @@ declare var PaymentMethodChangeEvent: {
16885
16979
  };
16886
16980
 
16887
16981
  interface PaymentRequestEventMap {
16888
- "paymentmethodchange": Event;
16982
+ "paymentmethodchange": PaymentMethodChangeEvent;
16889
16983
  "shippingaddresschange": Event;
16890
16984
  "shippingoptionchange": Event;
16891
16985
  }
@@ -16900,7 +16994,7 @@ interface PaymentRequest extends EventTarget {
16900
16994
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
16901
16995
  readonly id: string;
16902
16996
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
16903
- onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
16997
+ onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null;
16904
16998
  /**
16905
16999
  * @deprecated
16906
17000
  *
@@ -16979,43 +17073,19 @@ interface PaymentResponse extends EventTarget {
16979
17073
  readonly details: any;
16980
17074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
16981
17075
  readonly methodName: string;
16982
- /**
16983
- * @deprecated
16984
- *
16985
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event)
16986
- */
17076
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */
16987
17077
  onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
16988
- /**
16989
- * @deprecated
16990
- *
16991
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
16992
- */
17078
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail) */
16993
17079
  readonly payerEmail: string | null;
16994
- /**
16995
- * @deprecated
16996
- *
16997
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
16998
- */
17080
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName) */
16999
17081
  readonly payerName: string | null;
17000
- /**
17001
- * @deprecated
17002
- *
17003
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
17004
- */
17082
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone) */
17005
17083
  readonly payerPhone: string | null;
17006
17084
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
17007
17085
  readonly requestId: string;
17008
- /**
17009
- * @deprecated
17010
- *
17011
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
17012
- */
17086
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress) */
17013
17087
  readonly shippingAddress: PaymentAddress | null;
17014
- /**
17015
- * @deprecated
17016
- *
17017
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
17018
- */
17088
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption) */
17019
17089
  readonly shippingOption: string | null;
17020
17090
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
17021
17091
  complete(result?: PaymentComplete): Promise<void>;
@@ -17919,7 +17989,7 @@ interface RTCDataChannelEventMap {
17919
17989
  "bufferedamountlow": Event;
17920
17990
  "close": Event;
17921
17991
  "closing": Event;
17922
- "error": Event;
17992
+ "error": RTCErrorEvent;
17923
17993
  "message": MessageEvent;
17924
17994
  "open": Event;
17925
17995
  }
@@ -17949,7 +18019,7 @@ interface RTCDataChannel extends EventTarget {
17949
18019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
17950
18020
  onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
17951
18021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
17952
- onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
18022
+ onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;
17953
18023
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
17954
18024
  onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
17955
18025
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
@@ -17990,7 +18060,7 @@ declare var RTCDataChannelEvent: {
17990
18060
  };
17991
18061
 
17992
18062
  interface RTCDtlsTransportEventMap {
17993
- "error": Event;
18063
+ "error": RTCErrorEvent;
17994
18064
  "statechange": Event;
17995
18065
  }
17996
18066
 
@@ -17999,7 +18069,7 @@ interface RTCDtlsTransport extends EventTarget {
17999
18069
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
18000
18070
  readonly iceTransport: RTCIceTransport;
18001
18071
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
18002
- onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18072
+ onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
18003
18073
  onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18004
18074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
18005
18075
  readonly state: RTCDtlsTransportState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.159",
3
+ "version": "0.0.161",
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) */
@@ -4700,12 +4700,19 @@ interface CSSStyleDeclaration {
4700
4700
  stopOpacity: string;
4701
4701
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */
4702
4702
  stroke: string;
4703
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */
4703
4704
  strokeDasharray: string;
4705
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */
4704
4706
  strokeDashoffset: string;
4707
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */
4705
4708
  strokeLinecap: string;
4709
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */
4706
4710
  strokeLinejoin: string;
4711
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */
4707
4712
  strokeMiterlimit: string;
4713
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */
4708
4714
  strokeOpacity: string;
4715
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */
4709
4716
  strokeWidth: string;
4710
4717
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */
4711
4718
  tabSize: string;
@@ -8813,19 +8820,19 @@ declare var FontFace: {
8813
8820
  };
8814
8821
 
8815
8822
  interface FontFaceSetEventMap {
8816
- "loading": Event;
8817
- "loadingdone": Event;
8818
- "loadingerror": Event;
8823
+ "loading": FontFaceSetLoadEvent;
8824
+ "loadingdone": FontFaceSetLoadEvent;
8825
+ "loadingerror": FontFaceSetLoadEvent;
8819
8826
  }
8820
8827
 
8821
8828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
8822
8829
  interface FontFaceSet extends EventTarget {
8823
8830
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
8824
- onloading: ((this: FontFaceSet, ev: Event) => any) | null;
8831
+ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8825
8832
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
8826
- onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
8833
+ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8827
8834
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
8828
- onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
8835
+ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
8829
8836
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
8830
8837
  readonly ready: Promise<FontFaceSet>;
8831
8838
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
@@ -9919,7 +9926,11 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
9919
9926
  formTarget: string;
9920
9927
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
9921
9928
  readonly labels: NodeListOf<HTMLLabelElement>;
9922
- /** Sets or retrieves the name of the object. */
9929
+ /**
9930
+ * Sets or retrieves the name of the object.
9931
+ *
9932
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
9933
+ */
9923
9934
  name: string;
9924
9935
  /**
9925
9936
  * Gets the classification and default behavior of the button.
@@ -9931,12 +9942,21 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
9931
9942
  readonly validationMessage: string;
9932
9943
  /** Returns a ValidityState object that represents the validity states of an element. */
9933
9944
  readonly validity: ValidityState;
9934
- /** Sets or retrieves the default or selected value of the control. */
9945
+ /**
9946
+ * Sets or retrieves the default or selected value of the control.
9947
+ *
9948
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
9949
+ */
9935
9950
  value: string;
9936
9951
  /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
9937
9952
  readonly willValidate: boolean;
9938
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
9953
+ /**
9954
+ * Returns whether a form will validate when it is submitted, without having to submit it.
9955
+ *
9956
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity)
9957
+ */
9939
9958
  checkValidity(): boolean;
9959
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */
9940
9960
  reportValidity(): boolean;
9941
9961
  /**
9942
9962
  * Sets a custom error message that is displayed when a form is submitted.
@@ -10107,6 +10127,7 @@ declare var HTMLDataListElement: {
10107
10127
 
10108
10128
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */
10109
10129
  interface HTMLDetailsElement extends HTMLElement {
10130
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
10110
10131
  name: string;
10111
10132
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
10112
10133
  open: boolean;
@@ -10330,6 +10351,7 @@ interface HTMLFieldSetElement extends HTMLElement {
10330
10351
  readonly elements: HTMLCollection;
10331
10352
  /** Retrieves a reference to the form that the object is embedded in. */
10332
10353
  readonly form: HTMLFormElement | null;
10354
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */
10333
10355
  name: string;
10334
10356
  /** Returns the string "fieldset". */
10335
10357
  readonly type: string;
@@ -10339,8 +10361,13 @@ interface HTMLFieldSetElement extends HTMLElement {
10339
10361
  readonly validity: ValidityState;
10340
10362
  /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
10341
10363
  readonly willValidate: boolean;
10342
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
10364
+ /**
10365
+ * Returns whether a form will validate when it is submitted, without having to submit it.
10366
+ *
10367
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity)
10368
+ */
10343
10369
  checkValidity(): boolean;
10370
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */
10344
10371
  reportValidity(): boolean;
10345
10372
  /**
10346
10373
  * Sets a custom error message that is displayed when a form is submitted.
@@ -10483,7 +10510,11 @@ interface HTMLFormElement extends HTMLElement {
10483
10510
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
10484
10511
  */
10485
10512
  target: string;
10486
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
10513
+ /**
10514
+ * Returns whether a form will validate when it is submitted, without having to submit it.
10515
+ *
10516
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
10517
+ */
10487
10518
  checkValidity(): boolean;
10488
10519
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */
10489
10520
  reportValidity(): boolean;
@@ -11062,7 +11093,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11062
11093
  checked: boolean;
11063
11094
  /** Sets or retrieves the state of the check box or radio button. */
11064
11095
  defaultChecked: boolean;
11065
- /** Sets or retrieves the initial contents of the object. */
11096
+ /**
11097
+ * Sets or retrieves the initial contents of the object.
11098
+ *
11099
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
11100
+ */
11066
11101
  defaultValue: string;
11067
11102
  dirName: string;
11068
11103
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
@@ -11091,14 +11126,31 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11091
11126
  indeterminate: boolean;
11092
11127
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */
11093
11128
  readonly labels: NodeListOf<HTMLLabelElement> | null;
11094
- /** Specifies the ID of a pre-defined datalist of options for an input element. */
11129
+ /**
11130
+ * Specifies the ID of a pre-defined datalist of options for an input element.
11131
+ *
11132
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
11133
+ */
11095
11134
  readonly list: HTMLDataListElement | null;
11096
- /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
11135
+ /**
11136
+ * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
11137
+ *
11138
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
11139
+ */
11097
11140
  max: string;
11098
- /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
11141
+ /**
11142
+ * Sets or retrieves the maximum number of characters that the user can enter in a text control.
11143
+ *
11144
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
11145
+ */
11099
11146
  maxLength: number;
11100
- /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
11147
+ /**
11148
+ * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
11149
+ *
11150
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
11151
+ */
11101
11152
  min: string;
11153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
11102
11154
  minLength: number;
11103
11155
  /**
11104
11156
  * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
@@ -11106,7 +11158,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11106
11158
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)
11107
11159
  */
11108
11160
  multiple: boolean;
11109
- /** Sets or retrieves the name of the object. */
11161
+ /**
11162
+ * Sets or retrieves the name of the object.
11163
+ *
11164
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name)
11165
+ */
11110
11166
  name: string;
11111
11167
  /** Gets or sets a string containing a regular expression that the user's input must match. */
11112
11168
  pattern: string;
@@ -11132,7 +11188,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11132
11188
  size: number;
11133
11189
  /** The address or URL of the a media resource that is to be considered. */
11134
11190
  src: string;
11135
- /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
11191
+ /**
11192
+ * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
11193
+ *
11194
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step)
11195
+ */
11136
11196
  step: string;
11137
11197
  /**
11138
11198
  * Returns the content type of the object.
@@ -11752,13 +11812,19 @@ declare var HTMLMetaElement: {
11752
11812
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)
11753
11813
  */
11754
11814
  interface HTMLMeterElement extends HTMLElement {
11815
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */
11755
11816
  high: number;
11756
11817
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */
11757
11818
  readonly labels: NodeListOf<HTMLLabelElement>;
11819
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */
11758
11820
  low: number;
11821
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */
11759
11822
  max: number;
11823
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */
11760
11824
  min: number;
11825
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */
11761
11826
  optimum: number;
11827
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */
11762
11828
  value: number;
11763
11829
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11764
11830
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -11938,6 +12004,7 @@ interface HTMLObjectElement extends HTMLElement {
11938
12004
  */
11939
12005
  checkValidity(): boolean;
11940
12006
  getSVGDocument(): Document | null;
12007
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */
11941
12008
  reportValidity(): boolean;
11942
12009
  /**
11943
12010
  * Sets a custom error message that is displayed when a form is submitted.
@@ -11996,7 +12063,11 @@ interface HTMLOptionElement extends HTMLElement {
11996
12063
  selected: boolean;
11997
12064
  /** Sets or retrieves the text string specified by the option tag. */
11998
12065
  text: string;
11999
- /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
12066
+ /**
12067
+ * Sets or retrieves the value which is returned to the server when the form control is submitted.
12068
+ *
12069
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)
12070
+ */
12000
12071
  value: string;
12001
12072
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
12002
12073
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12074,6 +12145,7 @@ interface HTMLOutputElement extends HTMLElement {
12074
12145
  readonly htmlFor: DOMTokenList;
12075
12146
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
12076
12147
  readonly labels: NodeListOf<HTMLLabelElement>;
12148
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
12077
12149
  name: string;
12078
12150
  /** Returns the string "output". */
12079
12151
  readonly type: string;
@@ -12083,10 +12155,14 @@ interface HTMLOutputElement extends HTMLElement {
12083
12155
  * Returns the element's current value.
12084
12156
  *
12085
12157
  * Can be set, to change the value.
12158
+ *
12159
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
12086
12160
  */
12087
12161
  value: string;
12088
12162
  readonly willValidate: boolean;
12163
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */
12089
12164
  checkValidity(): boolean;
12165
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */
12090
12166
  reportValidity(): boolean;
12091
12167
  setCustomValidity(error: string): void;
12092
12168
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12347,7 +12423,11 @@ interface HTMLSelectElement extends HTMLElement {
12347
12423
  length: number;
12348
12424
  /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
12349
12425
  multiple: boolean;
12350
- /** Sets or retrieves the name of the object. */
12426
+ /**
12427
+ * Sets or retrieves the name of the object.
12428
+ *
12429
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
12430
+ */
12351
12431
  name: string;
12352
12432
  /**
12353
12433
  * Returns an HTMLOptionsCollection of the list of options.
@@ -12422,6 +12502,7 @@ interface HTMLSelectElement extends HTMLElement {
12422
12502
  */
12423
12503
  remove(): void;
12424
12504
  remove(index: number): void;
12505
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */
12425
12506
  reportValidity(): boolean;
12426
12507
  /**
12427
12508
  * Sets a custom error message that is displayed when a form is submitted.
@@ -13104,7 +13185,11 @@ interface HTMLTextAreaElement extends HTMLElement {
13104
13185
  /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
13105
13186
  maxLength: number;
13106
13187
  minLength: number;
13107
- /** Sets or retrieves the name of the object. */
13188
+ /**
13189
+ * Sets or retrieves the name of the object.
13190
+ *
13191
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name)
13192
+ */
13108
13193
  name: string;
13109
13194
  /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
13110
13195
  placeholder: string;
@@ -13130,14 +13215,23 @@ interface HTMLTextAreaElement extends HTMLElement {
13130
13215
  readonly validationMessage: string;
13131
13216
  /** Returns a ValidityState object that represents the validity states of an element. */
13132
13217
  readonly validity: ValidityState;
13133
- /** Retrieves or sets the text in the entry field of the textArea element. */
13218
+ /**
13219
+ * Retrieves or sets the text in the entry field of the textArea element.
13220
+ *
13221
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value)
13222
+ */
13134
13223
  value: string;
13135
13224
  /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
13136
13225
  readonly willValidate: boolean;
13137
13226
  /** Sets or retrieves how to handle wordwrapping in the object. */
13138
13227
  wrap: string;
13139
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
13228
+ /**
13229
+ * Returns whether a form will validate when it is submitted, without having to submit it.
13230
+ *
13231
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity)
13232
+ */
13140
13233
  checkValidity(): boolean;
13234
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */
13141
13235
  reportValidity(): boolean;
13142
13236
  /** Highlights the input area of a form element. */
13143
13237
  select(): void;
@@ -13281,8 +13375,8 @@ declare var HTMLUnknownElement: {
13281
13375
  };
13282
13376
 
13283
13377
  interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
13284
- "enterpictureinpicture": Event;
13285
- "leavepictureinpicture": Event;
13378
+ "enterpictureinpicture": PictureInPictureEvent;
13379
+ "leavepictureinpicture": PictureInPictureEvent;
13286
13380
  }
13287
13381
 
13288
13382
  /**
@@ -13300,9 +13394,9 @@ interface HTMLVideoElement extends HTMLMediaElement {
13300
13394
  */
13301
13395
  height: number;
13302
13396
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
13303
- onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13397
+ onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13304
13398
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
13305
- onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
13399
+ onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
13306
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. */
13307
13401
  playsInline: boolean;
13308
13402
  /**
@@ -14593,7 +14687,7 @@ declare var LockManager: {
14593
14687
  };
14594
14688
 
14595
14689
  interface MIDIAccessEventMap {
14596
- "statechange": Event;
14690
+ "statechange": MIDIConnectionEvent;
14597
14691
  }
14598
14692
 
14599
14693
  /**
@@ -14605,7 +14699,7 @@ interface MIDIAccess extends EventTarget {
14605
14699
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
14606
14700
  readonly inputs: MIDIInputMap;
14607
14701
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
14608
- onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
14702
+ onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null;
14609
14703
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
14610
14704
  readonly outputs: MIDIOutputMap;
14611
14705
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
@@ -15116,7 +15210,7 @@ declare var MediaQueryListEvent: {
15116
15210
 
15117
15211
  interface MediaRecorderEventMap {
15118
15212
  "dataavailable": BlobEvent;
15119
- "error": Event;
15213
+ "error": ErrorEvent;
15120
15214
  "pause": Event;
15121
15215
  "resume": Event;
15122
15216
  "start": Event;
@@ -15132,7 +15226,7 @@ interface MediaRecorder extends EventTarget {
15132
15226
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
15133
15227
  ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
15134
15228
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
15135
- onerror: ((this: MediaRecorder, ev: Event) => any) | null;
15229
+ onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null;
15136
15230
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
15137
15231
  onpause: ((this: MediaRecorder, ev: Event) => any) | null;
15138
15232
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
@@ -16885,7 +16979,7 @@ declare var PaymentMethodChangeEvent: {
16885
16979
  };
16886
16980
 
16887
16981
  interface PaymentRequestEventMap {
16888
- "paymentmethodchange": Event;
16982
+ "paymentmethodchange": PaymentMethodChangeEvent;
16889
16983
  "shippingaddresschange": Event;
16890
16984
  "shippingoptionchange": Event;
16891
16985
  }
@@ -16900,7 +16994,7 @@ interface PaymentRequest extends EventTarget {
16900
16994
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
16901
16995
  readonly id: string;
16902
16996
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
16903
- onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
16997
+ onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null;
16904
16998
  /**
16905
16999
  * @deprecated
16906
17000
  *
@@ -16979,43 +17073,19 @@ interface PaymentResponse extends EventTarget {
16979
17073
  readonly details: any;
16980
17074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
16981
17075
  readonly methodName: string;
16982
- /**
16983
- * @deprecated
16984
- *
16985
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event)
16986
- */
17076
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */
16987
17077
  onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
16988
- /**
16989
- * @deprecated
16990
- *
16991
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
16992
- */
17078
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail) */
16993
17079
  readonly payerEmail: string | null;
16994
- /**
16995
- * @deprecated
16996
- *
16997
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
16998
- */
17080
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName) */
16999
17081
  readonly payerName: string | null;
17000
- /**
17001
- * @deprecated
17002
- *
17003
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
17004
- */
17082
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone) */
17005
17083
  readonly payerPhone: string | null;
17006
17084
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
17007
17085
  readonly requestId: string;
17008
- /**
17009
- * @deprecated
17010
- *
17011
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
17012
- */
17086
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress) */
17013
17087
  readonly shippingAddress: PaymentAddress | null;
17014
- /**
17015
- * @deprecated
17016
- *
17017
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
17018
- */
17088
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption) */
17019
17089
  readonly shippingOption: string | null;
17020
17090
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
17021
17091
  complete(result?: PaymentComplete): Promise<void>;
@@ -17919,7 +17989,7 @@ interface RTCDataChannelEventMap {
17919
17989
  "bufferedamountlow": Event;
17920
17990
  "close": Event;
17921
17991
  "closing": Event;
17922
- "error": Event;
17992
+ "error": RTCErrorEvent;
17923
17993
  "message": MessageEvent;
17924
17994
  "open": Event;
17925
17995
  }
@@ -17949,7 +18019,7 @@ interface RTCDataChannel extends EventTarget {
17949
18019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
17950
18020
  onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
17951
18021
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
17952
- onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
18022
+ onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;
17953
18023
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
17954
18024
  onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
17955
18025
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
@@ -17990,7 +18060,7 @@ declare var RTCDataChannelEvent: {
17990
18060
  };
17991
18061
 
17992
18062
  interface RTCDtlsTransportEventMap {
17993
- "error": Event;
18063
+ "error": RTCErrorEvent;
17994
18064
  "statechange": Event;
17995
18065
  }
17996
18066
 
@@ -17999,7 +18069,7 @@ interface RTCDtlsTransport extends EventTarget {
17999
18069
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
18000
18070
  readonly iceTransport: RTCIceTransport;
18001
18071
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
18002
- onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18072
+ onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
18003
18073
  onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
18004
18074
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
18005
18075
  readonly state: RTCDtlsTransportState;