@types/webworker 0.0.76 → 0.0.77

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 @@ This project does not respect semantic versioning as almost every change could p
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.76 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.76.
50
+ You can read what changed in version 0.0.77 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.77.
package/index.d.ts CHANGED
@@ -919,6 +919,11 @@ interface NavigationPreloadState {
919
919
  headerValue?: string;
920
920
  }
921
921
 
922
+ interface NotificationAction {
923
+ action: string;
924
+ title: string;
925
+ }
926
+
922
927
  interface NotificationEventInit extends ExtendableEventInit {
923
928
  action?: string;
924
929
  notification: Notification;
@@ -7854,6 +7859,12 @@ interface NotificationEventMap {
7854
7859
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
7855
7860
  */
7856
7861
  interface Notification extends EventTarget {
7862
+ /**
7863
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
7864
+ *
7865
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
7866
+ */
7867
+ readonly actions: ReadonlyArray<NotificationAction>;
7857
7868
  /**
7858
7869
  * 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.
7859
7870
  *
@@ -7931,6 +7942,12 @@ interface Notification extends EventTarget {
7931
7942
  declare var Notification: {
7932
7943
  prototype: Notification;
7933
7944
  new(title: string, options?: NotificationOptions): Notification;
7945
+ /**
7946
+ * 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.
7947
+ *
7948
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
7949
+ */
7950
+ readonly maxActions: number;
7934
7951
  /**
7935
7952
  * 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.
7936
7953
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -916,6 +916,11 @@ interface NavigationPreloadState {
916
916
  headerValue?: string;
917
917
  }
918
918
 
919
+ interface NotificationAction {
920
+ action: string;
921
+ title: string;
922
+ }
923
+
919
924
  interface NotificationEventInit extends ExtendableEventInit {
920
925
  action?: string;
921
926
  notification: Notification;
@@ -7851,6 +7856,12 @@ interface NotificationEventMap {
7851
7856
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
7852
7857
  */
7853
7858
  interface Notification extends EventTarget {
7859
+ /**
7860
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
7861
+ *
7862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
7863
+ */
7864
+ readonly actions: ReadonlyArray<NotificationAction>;
7854
7865
  /**
7855
7866
  * 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.
7856
7867
  *
@@ -7928,6 +7939,12 @@ interface Notification extends EventTarget {
7928
7939
  declare var Notification: {
7929
7940
  prototype: Notification;
7930
7941
  new(title: string, options?: NotificationOptions): Notification;
7942
+ /**
7943
+ * 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.
7944
+ *
7945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
7946
+ */
7947
+ readonly maxActions: number;
7931
7948
  /**
7932
7949
  * 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.
7933
7950
  *
package/ts5.6/index.d.ts CHANGED
@@ -916,6 +916,11 @@ interface NavigationPreloadState {
916
916
  headerValue?: string;
917
917
  }
918
918
 
919
+ interface NotificationAction {
920
+ action: string;
921
+ title: string;
922
+ }
923
+
919
924
  interface NotificationEventInit extends ExtendableEventInit {
920
925
  action?: string;
921
926
  notification: Notification;
@@ -7851,6 +7856,12 @@ interface NotificationEventMap {
7851
7856
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
7852
7857
  */
7853
7858
  interface Notification extends EventTarget {
7859
+ /**
7860
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
7861
+ *
7862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
7863
+ */
7864
+ readonly actions: ReadonlyArray<NotificationAction>;
7854
7865
  /**
7855
7866
  * 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.
7856
7867
  *
@@ -7928,6 +7939,12 @@ interface Notification extends EventTarget {
7928
7939
  declare var Notification: {
7929
7940
  prototype: Notification;
7930
7941
  new(title: string, options?: NotificationOptions): Notification;
7942
+ /**
7943
+ * 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.
7944
+ *
7945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
7946
+ */
7947
+ readonly maxActions: number;
7931
7948
  /**
7932
7949
  * 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.
7933
7950
  *
package/ts5.9/index.d.ts CHANGED
@@ -916,6 +916,11 @@ interface NavigationPreloadState {
916
916
  headerValue?: string;
917
917
  }
918
918
 
919
+ interface NotificationAction {
920
+ action: string;
921
+ title: string;
922
+ }
923
+
919
924
  interface NotificationEventInit extends ExtendableEventInit {
920
925
  action?: string;
921
926
  notification: Notification;
@@ -7851,6 +7856,12 @@ interface NotificationEventMap {
7851
7856
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
7852
7857
  */
7853
7858
  interface Notification extends EventTarget {
7859
+ /**
7860
+ * The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
7861
+ *
7862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
7863
+ */
7864
+ readonly actions: ReadonlyArray<NotificationAction>;
7854
7865
  /**
7855
7866
  * 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.
7856
7867
  *
@@ -7928,6 +7939,12 @@ interface Notification extends EventTarget {
7928
7939
  declare var Notification: {
7929
7940
  prototype: Notification;
7930
7941
  new(title: string, options?: NotificationOptions): Notification;
7942
+ /**
7943
+ * 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.
7944
+ *
7945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
7946
+ */
7947
+ readonly maxActions: number;
7931
7948
  /**
7932
7949
  * 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.
7933
7950
  *