@types/web 0.0.349 → 0.0.351

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
@@ -49,4 +49,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
49
49
 
50
50
  ## Deploy Metadata
51
51
 
52
- You can read what changed in version 0.0.349 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.349.
52
+ You can read what changed in version 0.0.351 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.351.
package/index.d.ts CHANGED
@@ -1751,6 +1751,11 @@ interface NavigationUpdateCurrentEntryOptions {
1751
1751
  state: any;
1752
1752
  }
1753
1753
 
1754
+ interface NotificationAction {
1755
+ action: string;
1756
+ title: string;
1757
+ }
1758
+
1754
1759
  interface NotificationOptions {
1755
1760
  badge?: string;
1756
1761
  body?: string;
@@ -2754,6 +2759,10 @@ interface SerialPortRequestOptions {
2754
2759
  filters?: SerialPortFilter[];
2755
2760
  }
2756
2761
 
2762
+ interface SetHTMLOptions {
2763
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2764
+ }
2765
+
2757
2766
  interface ShadowRootInit {
2758
2767
  clonable?: boolean;
2759
2768
  customElementRegistry?: CustomElementRegistry | null;
@@ -14145,6 +14154,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14145
14154
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
14146
14155
  */
14147
14156
  setAttributeNodeNS(attr: Attr): Attr | null;
14157
+ /**
14158
+ * The **`setHTML()`** method of the Element interface provides an XSS-safe method to parse and sanitize a string of HTML and insert it into the DOM as a subtree of the element.
14159
+ *
14160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTML)
14161
+ */
14162
+ setHTML(html: string, options?: SetHTMLOptions): void;
14148
14163
  /**
14149
14164
  * The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
14150
14165
  *
@@ -17990,7 +18005,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
17990
18005
  *
17991
18006
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
17992
18007
  */
17993
- interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
18008
+ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
17994
18009
  /**
17995
18010
  * The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.
17996
18011
  *
@@ -20315,7 +20330,10 @@ declare var HTMLOptionsCollection: {
20315
20330
  new(): HTMLOptionsCollection;
20316
20331
  };
20317
20332
 
20318
- interface HTMLOrSVGElement {
20333
+ interface HTMLOrSVGElement extends HTMLOrSVGOrMathMLElement {
20334
+ }
20335
+
20336
+ interface HTMLOrSVGOrMathMLElement {
20319
20337
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
20320
20338
  autofocus: boolean;
20321
20339
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
@@ -24039,7 +24057,7 @@ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEven
24039
24057
  *
24040
24058
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
24041
24059
  */
24042
- interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
24060
+ interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
24043
24061
  addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
24044
24062
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
24045
24063
  removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -26036,6 +26054,7 @@ declare var NavigationPreloadManager: {
26036
26054
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
26037
26055
  */
26038
26056
  interface NavigationTransition {
26057
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/committed) */
26039
26058
  readonly committed: Promise<void>;
26040
26059
  /**
26041
26060
  * The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
@@ -26704,6 +26723,12 @@ interface NotificationEventMap {
26704
26723
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26705
26724
  */
26706
26725
  interface Notification extends EventTarget {
26726
+ /**
26727
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
26728
+ *
26729
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
26730
+ */
26731
+ readonly actions: ReadonlyArray<NotificationAction>;
26707
26732
  /**
26708
26733
  * The **`body`** read-only property of the Notification interface indicates the body string of the notification, as specified in the body option of the Notification() constructor.
26709
26734
  *
@@ -26781,6 +26806,12 @@ interface Notification extends EventTarget {
26781
26806
  declare var Notification: {
26782
26807
  prototype: Notification;
26783
26808
  new(title: string, options?: NotificationOptions): Notification;
26809
+ /**
26810
+ * The **`maxActions`** read-only static property of the Notification interface returns the maximum number of actions supported by the device and the User Agent. Effectively, this is the maximum number of elements in Notification.actions array which will be respected by the User Agent.
26811
+ *
26812
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
26813
+ */
26814
+ readonly maxActions: number;
26784
26815
  /**
26785
26816
  * The **`permission`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
26786
26817
  *
@@ -29978,9 +30009,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29978
30009
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29979
30010
  */
29980
30011
  readonly address: string | null;
30012
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29981
30013
  readonly errorCode: number;
30014
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29982
30015
  readonly errorText: string;
30016
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29983
30017
  readonly port: number | null;
30018
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29984
30019
  readonly url: string;
29985
30020
  }
29986
30021
 
@@ -31831,7 +31866,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
31831
31866
  *
31832
31867
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
31833
31868
  */
31834
- interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
31869
+ interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
31835
31870
  /** @deprecated */
31836
31871
  readonly className: any;
31837
31872
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.349",
3
+ "version": "0.0.351",
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
@@ -1748,6 +1748,11 @@ interface NavigationUpdateCurrentEntryOptions {
1748
1748
  state: any;
1749
1749
  }
1750
1750
 
1751
+ interface NotificationAction {
1752
+ action: string;
1753
+ title: string;
1754
+ }
1755
+
1751
1756
  interface NotificationOptions {
1752
1757
  badge?: string;
1753
1758
  body?: string;
@@ -2751,6 +2756,10 @@ interface SerialPortRequestOptions {
2751
2756
  filters?: SerialPortFilter[];
2752
2757
  }
2753
2758
 
2759
+ interface SetHTMLOptions {
2760
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2761
+ }
2762
+
2754
2763
  interface ShadowRootInit {
2755
2764
  clonable?: boolean;
2756
2765
  customElementRegistry?: CustomElementRegistry | null;
@@ -14132,6 +14141,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14132
14141
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
14133
14142
  */
14134
14143
  setAttributeNodeNS(attr: Attr): Attr | null;
14144
+ /**
14145
+ * The **`setHTML()`** method of the Element interface provides an XSS-safe method to parse and sanitize a string of HTML and insert it into the DOM as a subtree of the element.
14146
+ *
14147
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTML)
14148
+ */
14149
+ setHTML(html: string, options?: SetHTMLOptions): void;
14135
14150
  /**
14136
14151
  * The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
14137
14152
  *
@@ -17974,7 +17989,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
17974
17989
  *
17975
17990
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
17976
17991
  */
17977
- interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
17992
+ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
17978
17993
  /**
17979
17994
  * The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.
17980
17995
  *
@@ -20294,7 +20309,10 @@ declare var HTMLOptionsCollection: {
20294
20309
  new(): HTMLOptionsCollection;
20295
20310
  };
20296
20311
 
20297
- interface HTMLOrSVGElement {
20312
+ interface HTMLOrSVGElement extends HTMLOrSVGOrMathMLElement {
20313
+ }
20314
+
20315
+ interface HTMLOrSVGOrMathMLElement {
20298
20316
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
20299
20317
  autofocus: boolean;
20300
20318
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
@@ -24015,7 +24033,7 @@ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEven
24015
24033
  *
24016
24034
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
24017
24035
  */
24018
- interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
24036
+ interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
24019
24037
  addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
24020
24038
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
24021
24039
  removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -26012,6 +26030,7 @@ declare var NavigationPreloadManager: {
26012
26030
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
26013
26031
  */
26014
26032
  interface NavigationTransition {
26033
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/committed) */
26015
26034
  readonly committed: Promise<void>;
26016
26035
  /**
26017
26036
  * The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
@@ -26680,6 +26699,12 @@ interface NotificationEventMap {
26680
26699
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26681
26700
  */
26682
26701
  interface Notification extends EventTarget {
26702
+ /**
26703
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
26704
+ *
26705
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
26706
+ */
26707
+ readonly actions: ReadonlyArray<NotificationAction>;
26683
26708
  /**
26684
26709
  * The **`body`** read-only property of the Notification interface indicates the body string of the notification, as specified in the body option of the Notification() constructor.
26685
26710
  *
@@ -26757,6 +26782,12 @@ interface Notification extends EventTarget {
26757
26782
  declare var Notification: {
26758
26783
  prototype: Notification;
26759
26784
  new(title: string, options?: NotificationOptions): Notification;
26785
+ /**
26786
+ * The **`maxActions`** read-only static property of the Notification interface returns the maximum number of actions supported by the device and the User Agent. Effectively, this is the maximum number of elements in Notification.actions array which will be respected by the User Agent.
26787
+ *
26788
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
26789
+ */
26790
+ readonly maxActions: number;
26760
26791
  /**
26761
26792
  * The **`permission`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
26762
26793
  *
@@ -29954,9 +29985,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29954
29985
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29955
29986
  */
29956
29987
  readonly address: string | null;
29988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29957
29989
  readonly errorCode: number;
29990
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29958
29991
  readonly errorText: string;
29992
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29959
29993
  readonly port: number | null;
29994
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29960
29995
  readonly url: string;
29961
29996
  }
29962
29997
 
@@ -31806,7 +31841,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
31806
31841
  *
31807
31842
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
31808
31843
  */
31809
- interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
31844
+ interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
31810
31845
  /** @deprecated */
31811
31846
  readonly className: any;
31812
31847
  /**
package/ts5.6/index.d.ts CHANGED
@@ -1748,6 +1748,11 @@ interface NavigationUpdateCurrentEntryOptions {
1748
1748
  state: any;
1749
1749
  }
1750
1750
 
1751
+ interface NotificationAction {
1752
+ action: string;
1753
+ title: string;
1754
+ }
1755
+
1751
1756
  interface NotificationOptions {
1752
1757
  badge?: string;
1753
1758
  body?: string;
@@ -2751,6 +2756,10 @@ interface SerialPortRequestOptions {
2751
2756
  filters?: SerialPortFilter[];
2752
2757
  }
2753
2758
 
2759
+ interface SetHTMLOptions {
2760
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2761
+ }
2762
+
2754
2763
  interface ShadowRootInit {
2755
2764
  clonable?: boolean;
2756
2765
  customElementRegistry?: CustomElementRegistry | null;
@@ -14142,6 +14151,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14142
14151
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
14143
14152
  */
14144
14153
  setAttributeNodeNS(attr: Attr): Attr | null;
14154
+ /**
14155
+ * The **`setHTML()`** method of the Element interface provides an XSS-safe method to parse and sanitize a string of HTML and insert it into the DOM as a subtree of the element.
14156
+ *
14157
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTML)
14158
+ */
14159
+ setHTML(html: string, options?: SetHTMLOptions): void;
14145
14160
  /**
14146
14161
  * The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
14147
14162
  *
@@ -17987,7 +18002,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
17987
18002
  *
17988
18003
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
17989
18004
  */
17990
- interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
18005
+ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
17991
18006
  /**
17992
18007
  * The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.
17993
18008
  *
@@ -20312,7 +20327,10 @@ declare var HTMLOptionsCollection: {
20312
20327
  new(): HTMLOptionsCollection;
20313
20328
  };
20314
20329
 
20315
- interface HTMLOrSVGElement {
20330
+ interface HTMLOrSVGElement extends HTMLOrSVGOrMathMLElement {
20331
+ }
20332
+
20333
+ interface HTMLOrSVGOrMathMLElement {
20316
20334
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
20317
20335
  autofocus: boolean;
20318
20336
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
@@ -24036,7 +24054,7 @@ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEven
24036
24054
  *
24037
24055
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
24038
24056
  */
24039
- interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
24057
+ interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
24040
24058
  addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
24041
24059
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
24042
24060
  removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -26033,6 +26051,7 @@ declare var NavigationPreloadManager: {
26033
26051
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
26034
26052
  */
26035
26053
  interface NavigationTransition {
26054
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/committed) */
26036
26055
  readonly committed: Promise<void>;
26037
26056
  /**
26038
26057
  * The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
@@ -26701,6 +26720,12 @@ interface NotificationEventMap {
26701
26720
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26702
26721
  */
26703
26722
  interface Notification extends EventTarget {
26723
+ /**
26724
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
26725
+ *
26726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
26727
+ */
26728
+ readonly actions: ReadonlyArray<NotificationAction>;
26704
26729
  /**
26705
26730
  * The **`body`** read-only property of the Notification interface indicates the body string of the notification, as specified in the body option of the Notification() constructor.
26706
26731
  *
@@ -26778,6 +26803,12 @@ interface Notification extends EventTarget {
26778
26803
  declare var Notification: {
26779
26804
  prototype: Notification;
26780
26805
  new(title: string, options?: NotificationOptions): Notification;
26806
+ /**
26807
+ * The **`maxActions`** read-only static property of the Notification interface returns the maximum number of actions supported by the device and the User Agent. Effectively, this is the maximum number of elements in Notification.actions array which will be respected by the User Agent.
26808
+ *
26809
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
26810
+ */
26811
+ readonly maxActions: number;
26781
26812
  /**
26782
26813
  * The **`permission`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
26783
26814
  *
@@ -29975,9 +30006,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29975
30006
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29976
30007
  */
29977
30008
  readonly address: string | null;
30009
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29978
30010
  readonly errorCode: number;
30011
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29979
30012
  readonly errorText: string;
30013
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29980
30014
  readonly port: number | null;
30015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29981
30016
  readonly url: string;
29982
30017
  }
29983
30018
 
@@ -31828,7 +31863,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
31828
31863
  *
31829
31864
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
31830
31865
  */
31831
- interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
31866
+ interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
31832
31867
  /** @deprecated */
31833
31868
  readonly className: any;
31834
31869
  /**
package/ts5.9/index.d.ts CHANGED
@@ -1748,6 +1748,11 @@ interface NavigationUpdateCurrentEntryOptions {
1748
1748
  state: any;
1749
1749
  }
1750
1750
 
1751
+ interface NotificationAction {
1752
+ action: string;
1753
+ title: string;
1754
+ }
1755
+
1751
1756
  interface NotificationOptions {
1752
1757
  badge?: string;
1753
1758
  body?: string;
@@ -2751,6 +2756,10 @@ interface SerialPortRequestOptions {
2751
2756
  filters?: SerialPortFilter[];
2752
2757
  }
2753
2758
 
2759
+ interface SetHTMLOptions {
2760
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2761
+ }
2762
+
2754
2763
  interface ShadowRootInit {
2755
2764
  clonable?: boolean;
2756
2765
  customElementRegistry?: CustomElementRegistry | null;
@@ -14142,6 +14151,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14142
14151
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
14143
14152
  */
14144
14153
  setAttributeNodeNS(attr: Attr): Attr | null;
14154
+ /**
14155
+ * The **`setHTML()`** method of the Element interface provides an XSS-safe method to parse and sanitize a string of HTML and insert it into the DOM as a subtree of the element.
14156
+ *
14157
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTML)
14158
+ */
14159
+ setHTML(html: string, options?: SetHTMLOptions): void;
14145
14160
  /**
14146
14161
  * The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
14147
14162
  *
@@ -17987,7 +18002,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
17987
18002
  *
17988
18003
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
17989
18004
  */
17990
- interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
18005
+ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
17991
18006
  /**
17992
18007
  * The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.
17993
18008
  *
@@ -20312,7 +20327,10 @@ declare var HTMLOptionsCollection: {
20312
20327
  new(): HTMLOptionsCollection;
20313
20328
  };
20314
20329
 
20315
- interface HTMLOrSVGElement {
20330
+ interface HTMLOrSVGElement extends HTMLOrSVGOrMathMLElement {
20331
+ }
20332
+
20333
+ interface HTMLOrSVGOrMathMLElement {
20316
20334
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
20317
20335
  autofocus: boolean;
20318
20336
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
@@ -24036,7 +24054,7 @@ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEven
24036
24054
  *
24037
24055
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
24038
24056
  */
24039
- interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
24057
+ interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGOrMathMLElement {
24040
24058
  addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
24041
24059
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
24042
24060
  removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -26033,6 +26051,7 @@ declare var NavigationPreloadManager: {
26033
26051
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
26034
26052
  */
26035
26053
  interface NavigationTransition {
26054
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/committed) */
26036
26055
  readonly committed: Promise<void>;
26037
26056
  /**
26038
26057
  * The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
@@ -26701,6 +26720,12 @@ interface NotificationEventMap {
26701
26720
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26702
26721
  */
26703
26722
  interface Notification extends EventTarget {
26723
+ /**
26724
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
26725
+ *
26726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
26727
+ */
26728
+ readonly actions: ReadonlyArray<NotificationAction>;
26704
26729
  /**
26705
26730
  * The **`body`** read-only property of the Notification interface indicates the body string of the notification, as specified in the body option of the Notification() constructor.
26706
26731
  *
@@ -26778,6 +26803,12 @@ interface Notification extends EventTarget {
26778
26803
  declare var Notification: {
26779
26804
  prototype: Notification;
26780
26805
  new(title: string, options?: NotificationOptions): Notification;
26806
+ /**
26807
+ * The **`maxActions`** read-only static property of the Notification interface returns the maximum number of actions supported by the device and the User Agent. Effectively, this is the maximum number of elements in Notification.actions array which will be respected by the User Agent.
26808
+ *
26809
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
26810
+ */
26811
+ readonly maxActions: number;
26781
26812
  /**
26782
26813
  * The **`permission`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
26783
26814
  *
@@ -29975,9 +30006,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29975
30006
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29976
30007
  */
29977
30008
  readonly address: string | null;
30009
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29978
30010
  readonly errorCode: number;
30011
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29979
30012
  readonly errorText: string;
30013
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29980
30014
  readonly port: number | null;
30015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29981
30016
  readonly url: string;
29982
30017
  }
29983
30018
 
@@ -31828,7 +31863,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
31828
31863
  *
31829
31864
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
31830
31865
  */
31831
- interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
31866
+ interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement, HTMLOrSVGOrMathMLElement {
31832
31867
  /** @deprecated */
31833
31868
  readonly className: any;
31834
31869
  /**