@types/web 0.0.350 → 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.350 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.350.
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;
@@ -26718,6 +26723,12 @@ interface NotificationEventMap {
26718
26723
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26719
26724
  */
26720
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>;
26721
26732
  /**
26722
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.
26723
26734
  *
@@ -26795,6 +26806,12 @@ interface Notification extends EventTarget {
26795
26806
  declare var Notification: {
26796
26807
  prototype: Notification;
26797
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;
26798
26815
  /**
26799
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.
26800
26817
  *
@@ -29992,9 +30009,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29992
30009
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29993
30010
  */
29994
30011
  readonly address: string | null;
30012
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29995
30013
  readonly errorCode: number;
30014
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29996
30015
  readonly errorText: string;
30016
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29997
30017
  readonly port: number | null;
30018
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29998
30019
  readonly url: string;
29999
30020
  }
30000
30021
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.350",
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;
@@ -26694,6 +26699,12 @@ interface NotificationEventMap {
26694
26699
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26695
26700
  */
26696
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>;
26697
26708
  /**
26698
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.
26699
26710
  *
@@ -26771,6 +26782,12 @@ interface Notification extends EventTarget {
26771
26782
  declare var Notification: {
26772
26783
  prototype: Notification;
26773
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;
26774
26791
  /**
26775
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.
26776
26793
  *
@@ -29968,9 +29985,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29968
29985
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29969
29986
  */
29970
29987
  readonly address: string | null;
29988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29971
29989
  readonly errorCode: number;
29990
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29972
29991
  readonly errorText: string;
29992
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29973
29993
  readonly port: number | null;
29994
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29974
29995
  readonly url: string;
29975
29996
  }
29976
29997
 
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;
@@ -26715,6 +26720,12 @@ interface NotificationEventMap {
26715
26720
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26716
26721
  */
26717
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>;
26718
26729
  /**
26719
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.
26720
26731
  *
@@ -26792,6 +26803,12 @@ interface Notification extends EventTarget {
26792
26803
  declare var Notification: {
26793
26804
  prototype: Notification;
26794
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;
26795
26812
  /**
26796
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.
26797
26814
  *
@@ -29989,9 +30006,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29989
30006
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29990
30007
  */
29991
30008
  readonly address: string | null;
30009
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29992
30010
  readonly errorCode: number;
30011
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29993
30012
  readonly errorText: string;
30013
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29994
30014
  readonly port: number | null;
30015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29995
30016
  readonly url: string;
29996
30017
  }
29997
30018
 
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;
@@ -26715,6 +26720,12 @@ interface NotificationEventMap {
26715
26720
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
26716
26721
  */
26717
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>;
26718
26729
  /**
26719
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.
26720
26731
  *
@@ -26792,6 +26803,12 @@ interface Notification extends EventTarget {
26792
26803
  declare var Notification: {
26793
26804
  prototype: Notification;
26794
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;
26795
26812
  /**
26796
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.
26797
26814
  *
@@ -29989,9 +30006,13 @@ interface RTCPeerConnectionIceErrorEvent extends Event {
29989
30006
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
29990
30007
  */
29991
30008
  readonly address: string | null;
30009
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
29992
30010
  readonly errorCode: number;
30011
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
29993
30012
  readonly errorText: string;
30013
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/port) */
29994
30014
  readonly port: number | null;
30015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
29995
30016
  readonly url: string;
29996
30017
  }
29997
30018