@types/web 0.0.275 → 0.0.276

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.275 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.275.
50
+ You can read what changed in version 0.0.276 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.276.
package/index.d.ts CHANGED
@@ -2312,6 +2312,7 @@ interface TextEncoderEncodeIntoResult {
2312
2312
  interface ToggleEventInit extends EventInit {
2313
2313
  newState?: string;
2314
2314
  oldState?: string;
2315
+ source?: Element | null;
2315
2316
  }
2316
2317
 
2317
2318
  interface TouchEventInit extends EventModifierInit {
@@ -3280,7 +3281,11 @@ interface AnimationTimeline {
3280
3281
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3281
3282
  */
3282
3283
  readonly currentTime: CSSNumberish | null;
3283
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3284
+ /**
3285
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3286
+ *
3287
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3288
+ */
3284
3289
  readonly duration: CSSNumberish | null;
3285
3290
  }
3286
3291
 
@@ -14140,7 +14145,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14140
14145
  */
14141
14146
  innerText: string;
14142
14147
  /**
14143
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14148
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14144
14149
  *
14145
14150
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14146
14151
  */
@@ -15489,7 +15494,7 @@ interface HTMLLabelElement extends HTMLElement {
15489
15494
  */
15490
15495
  readonly control: HTMLElement | null;
15491
15496
  /**
15492
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15497
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15493
15498
  *
15494
15499
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15495
15500
  */
@@ -16800,7 +16805,7 @@ interface HTMLScriptElement extends HTMLElement {
16800
16805
  */
16801
16806
  src: string;
16802
16807
  /**
16803
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16808
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16804
16809
  *
16805
16810
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16806
16811
  */
@@ -30643,7 +30648,7 @@ interface ScreenOrientation extends EventTarget {
30643
30648
  */
30644
30649
  lock(orientation: OrientationLockType): Promise<void>;
30645
30650
  /**
30646
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30651
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30647
30652
  *
30648
30653
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30649
30654
  */
@@ -40147,7 +40152,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40147
40152
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40148
40153
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40149
40154
  type MediaStreamTrackState = "ended" | "live";
40150
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40155
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40151
40156
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40152
40157
  type NotificationDirection = "auto" | "ltr" | "rtl";
40153
40158
  type NotificationPermission = "default" | "denied" | "granted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.275",
3
+ "version": "0.0.276",
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
@@ -2309,6 +2309,7 @@ interface TextEncoderEncodeIntoResult {
2309
2309
  interface ToggleEventInit extends EventInit {
2310
2310
  newState?: string;
2311
2311
  oldState?: string;
2312
+ source?: Element | null;
2312
2313
  }
2313
2314
 
2314
2315
  interface TouchEventInit extends EventModifierInit {
@@ -3277,7 +3278,11 @@ interface AnimationTimeline {
3277
3278
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3278
3279
  */
3279
3280
  readonly currentTime: CSSNumberish | null;
3280
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3281
+ /**
3282
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3283
+ *
3284
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3285
+ */
3281
3286
  readonly duration: CSSNumberish | null;
3282
3287
  }
3283
3288
 
@@ -14124,7 +14129,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14124
14129
  */
14125
14130
  innerText: string;
14126
14131
  /**
14127
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14132
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14128
14133
  *
14129
14134
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14130
14135
  */
@@ -15471,7 +15476,7 @@ interface HTMLLabelElement extends HTMLElement {
15471
15476
  */
15472
15477
  readonly control: HTMLElement | null;
15473
15478
  /**
15474
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15479
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15475
15480
  *
15476
15481
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15477
15482
  */
@@ -16777,7 +16782,7 @@ interface HTMLScriptElement extends HTMLElement {
16777
16782
  */
16778
16783
  src: string;
16779
16784
  /**
16780
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16785
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16781
16786
  *
16782
16787
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16783
16788
  */
@@ -30618,7 +30623,7 @@ interface ScreenOrientation extends EventTarget {
30618
30623
  */
30619
30624
  lock(orientation: OrientationLockType): Promise<void>;
30620
30625
  /**
30621
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30626
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30622
30627
  *
30623
30628
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30624
30629
  */
@@ -40121,7 +40126,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40121
40126
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40122
40127
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40123
40128
  type MediaStreamTrackState = "ended" | "live";
40124
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40129
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40125
40130
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40126
40131
  type NotificationDirection = "auto" | "ltr" | "rtl";
40127
40132
  type NotificationPermission = "default" | "denied" | "granted";
package/ts5.6/index.d.ts CHANGED
@@ -2309,6 +2309,7 @@ interface TextEncoderEncodeIntoResult {
2309
2309
  interface ToggleEventInit extends EventInit {
2310
2310
  newState?: string;
2311
2311
  oldState?: string;
2312
+ source?: Element | null;
2312
2313
  }
2313
2314
 
2314
2315
  interface TouchEventInit extends EventModifierInit {
@@ -3277,7 +3278,11 @@ interface AnimationTimeline {
3277
3278
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3278
3279
  */
3279
3280
  readonly currentTime: CSSNumberish | null;
3280
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3281
+ /**
3282
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3283
+ *
3284
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3285
+ */
3281
3286
  readonly duration: CSSNumberish | null;
3282
3287
  }
3283
3288
 
@@ -14137,7 +14142,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14137
14142
  */
14138
14143
  innerText: string;
14139
14144
  /**
14140
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14145
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14141
14146
  *
14142
14147
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14143
14148
  */
@@ -15486,7 +15491,7 @@ interface HTMLLabelElement extends HTMLElement {
15486
15491
  */
15487
15492
  readonly control: HTMLElement | null;
15488
15493
  /**
15489
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15494
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15490
15495
  *
15491
15496
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15492
15497
  */
@@ -16797,7 +16802,7 @@ interface HTMLScriptElement extends HTMLElement {
16797
16802
  */
16798
16803
  src: string;
16799
16804
  /**
16800
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16805
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16801
16806
  *
16802
16807
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16803
16808
  */
@@ -30640,7 +30645,7 @@ interface ScreenOrientation extends EventTarget {
30640
30645
  */
30641
30646
  lock(orientation: OrientationLockType): Promise<void>;
30642
30647
  /**
30643
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30648
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30644
30649
  *
30645
30650
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30646
30651
  */
@@ -40144,7 +40149,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40144
40149
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40145
40150
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40146
40151
  type MediaStreamTrackState = "ended" | "live";
40147
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40152
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40148
40153
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40149
40154
  type NotificationDirection = "auto" | "ltr" | "rtl";
40150
40155
  type NotificationPermission = "default" | "denied" | "granted";
package/ts5.9/index.d.ts CHANGED
@@ -2309,6 +2309,7 @@ interface TextEncoderEncodeIntoResult {
2309
2309
  interface ToggleEventInit extends EventInit {
2310
2310
  newState?: string;
2311
2311
  oldState?: string;
2312
+ source?: Element | null;
2312
2313
  }
2313
2314
 
2314
2315
  interface TouchEventInit extends EventModifierInit {
@@ -3277,7 +3278,11 @@ interface AnimationTimeline {
3277
3278
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3278
3279
  */
3279
3280
  readonly currentTime: CSSNumberish | null;
3280
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3281
+ /**
3282
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3283
+ *
3284
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3285
+ */
3281
3286
  readonly duration: CSSNumberish | null;
3282
3287
  }
3283
3288
 
@@ -14137,7 +14142,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14137
14142
  */
14138
14143
  innerText: string;
14139
14144
  /**
14140
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14145
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14141
14146
  *
14142
14147
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14143
14148
  */
@@ -15486,7 +15491,7 @@ interface HTMLLabelElement extends HTMLElement {
15486
15491
  */
15487
15492
  readonly control: HTMLElement | null;
15488
15493
  /**
15489
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15494
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15490
15495
  *
15491
15496
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15492
15497
  */
@@ -16797,7 +16802,7 @@ interface HTMLScriptElement extends HTMLElement {
16797
16802
  */
16798
16803
  src: string;
16799
16804
  /**
16800
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16805
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16801
16806
  *
16802
16807
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16803
16808
  */
@@ -30640,7 +30645,7 @@ interface ScreenOrientation extends EventTarget {
30640
30645
  */
30641
30646
  lock(orientation: OrientationLockType): Promise<void>;
30642
30647
  /**
30643
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30648
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30644
30649
  *
30645
30650
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30646
30651
  */
@@ -40144,7 +40149,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40144
40149
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40145
40150
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40146
40151
  type MediaStreamTrackState = "ended" | "live";
40147
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40152
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40148
40153
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40149
40154
  type NotificationDirection = "auto" | "ltr" | "rtl";
40150
40155
  type NotificationPermission = "default" | "denied" | "granted";