@types/sharedworker 0.0.226 → 0.0.227

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
@@ -29,4 +29,4 @@ This project does not respect semantic versioning as almost every change could p
29
29
 
30
30
  ## Deploy Metadata
31
31
 
32
- You can read what changed in version 0.0.226 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.226.
32
+ You can read what changed in version 0.0.227 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.227.
package/index.d.ts CHANGED
@@ -748,6 +748,11 @@ interface NavigationPreloadState {
748
748
  headerValue?: string;
749
749
  }
750
750
 
751
+ interface NotificationAction {
752
+ action: string;
753
+ title: string;
754
+ }
755
+
751
756
  interface NotificationOptions {
752
757
  badge?: string;
753
758
  body?: string;
@@ -6635,6 +6640,12 @@ interface NotificationEventMap {
6635
6640
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
6636
6641
  */
6637
6642
  interface Notification extends EventTarget {
6643
+ /**
6644
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
6645
+ *
6646
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
6647
+ */
6648
+ readonly actions: ReadonlyArray<NotificationAction>;
6638
6649
  /**
6639
6650
  * 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.
6640
6651
  *
@@ -6712,6 +6723,12 @@ interface Notification extends EventTarget {
6712
6723
  declare var Notification: {
6713
6724
  prototype: Notification;
6714
6725
  new(title: string, options?: NotificationOptions): Notification;
6726
+ /**
6727
+ * 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.
6728
+ *
6729
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
6730
+ */
6731
+ readonly maxActions: number;
6715
6732
  /**
6716
6733
  * 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.
6717
6734
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.226",
3
+ "version": "0.0.227",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -745,6 +745,11 @@ interface NavigationPreloadState {
745
745
  headerValue?: string;
746
746
  }
747
747
 
748
+ interface NotificationAction {
749
+ action: string;
750
+ title: string;
751
+ }
752
+
748
753
  interface NotificationOptions {
749
754
  badge?: string;
750
755
  body?: string;
@@ -6632,6 +6637,12 @@ interface NotificationEventMap {
6632
6637
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
6633
6638
  */
6634
6639
  interface Notification extends EventTarget {
6640
+ /**
6641
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
6642
+ *
6643
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
6644
+ */
6645
+ readonly actions: ReadonlyArray<NotificationAction>;
6635
6646
  /**
6636
6647
  * 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.
6637
6648
  *
@@ -6709,6 +6720,12 @@ interface Notification extends EventTarget {
6709
6720
  declare var Notification: {
6710
6721
  prototype: Notification;
6711
6722
  new(title: string, options?: NotificationOptions): Notification;
6723
+ /**
6724
+ * 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.
6725
+ *
6726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
6727
+ */
6728
+ readonly maxActions: number;
6712
6729
  /**
6713
6730
  * 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.
6714
6731
  *
package/ts5.6/index.d.ts CHANGED
@@ -745,6 +745,11 @@ interface NavigationPreloadState {
745
745
  headerValue?: string;
746
746
  }
747
747
 
748
+ interface NotificationAction {
749
+ action: string;
750
+ title: string;
751
+ }
752
+
748
753
  interface NotificationOptions {
749
754
  badge?: string;
750
755
  body?: string;
@@ -6632,6 +6637,12 @@ interface NotificationEventMap {
6632
6637
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
6633
6638
  */
6634
6639
  interface Notification extends EventTarget {
6640
+ /**
6641
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
6642
+ *
6643
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
6644
+ */
6645
+ readonly actions: ReadonlyArray<NotificationAction>;
6635
6646
  /**
6636
6647
  * 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.
6637
6648
  *
@@ -6709,6 +6720,12 @@ interface Notification extends EventTarget {
6709
6720
  declare var Notification: {
6710
6721
  prototype: Notification;
6711
6722
  new(title: string, options?: NotificationOptions): Notification;
6723
+ /**
6724
+ * 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.
6725
+ *
6726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
6727
+ */
6728
+ readonly maxActions: number;
6712
6729
  /**
6713
6730
  * 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.
6714
6731
  *
package/ts5.9/index.d.ts CHANGED
@@ -745,6 +745,11 @@ interface NavigationPreloadState {
745
745
  headerValue?: string;
746
746
  }
747
747
 
748
+ interface NotificationAction {
749
+ action: string;
750
+ title: string;
751
+ }
752
+
748
753
  interface NotificationOptions {
749
754
  badge?: string;
750
755
  body?: string;
@@ -6632,6 +6637,12 @@ interface NotificationEventMap {
6632
6637
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
6633
6638
  */
6634
6639
  interface Notification extends EventTarget {
6640
+ /**
6641
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
6642
+ *
6643
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
6644
+ */
6645
+ readonly actions: ReadonlyArray<NotificationAction>;
6635
6646
  /**
6636
6647
  * 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.
6637
6648
  *
@@ -6709,6 +6720,12 @@ interface Notification extends EventTarget {
6709
6720
  declare var Notification: {
6710
6721
  prototype: Notification;
6711
6722
  new(title: string, options?: NotificationOptions): Notification;
6723
+ /**
6724
+ * 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.
6725
+ *
6726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
6727
+ */
6728
+ readonly maxActions: number;
6712
6729
  /**
6713
6730
  * 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.
6714
6731
  *