@types/serviceworker 0.0.197 → 0.0.198
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 +1 -1
- package/index.d.ts +17 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +17 -0
- package/ts5.6/index.d.ts +17 -0
- package/ts5.9/index.d.ts +17 -0
package/README.md
CHANGED
|
@@ -30,4 +30,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
30
30
|
|
|
31
31
|
## Deploy Metadata
|
|
32
32
|
|
|
33
|
-
You can read what changed in version 0.0.
|
|
33
|
+
You can read what changed in version 0.0.198 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.198.
|
package/index.d.ts
CHANGED
|
@@ -804,6 +804,11 @@ interface NavigationPreloadState {
|
|
|
804
804
|
headerValue?: string;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
+
interface NotificationAction {
|
|
808
|
+
action: string;
|
|
809
|
+
title: string;
|
|
810
|
+
}
|
|
811
|
+
|
|
807
812
|
interface NotificationEventInit extends ExtendableEventInit {
|
|
808
813
|
action?: string;
|
|
809
814
|
notification: Notification;
|
|
@@ -6952,6 +6957,12 @@ interface NotificationEventMap {
|
|
|
6952
6957
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
6953
6958
|
*/
|
|
6954
6959
|
interface Notification extends EventTarget {
|
|
6960
|
+
/**
|
|
6961
|
+
* The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
|
|
6962
|
+
*
|
|
6963
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
|
|
6964
|
+
*/
|
|
6965
|
+
readonly actions: ReadonlyArray<NotificationAction>;
|
|
6955
6966
|
/**
|
|
6956
6967
|
* 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.
|
|
6957
6968
|
*
|
|
@@ -7029,6 +7040,12 @@ interface Notification extends EventTarget {
|
|
|
7029
7040
|
declare var Notification: {
|
|
7030
7041
|
prototype: Notification;
|
|
7031
7042
|
new(title: string, options?: NotificationOptions): Notification;
|
|
7043
|
+
/**
|
|
7044
|
+
* 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.
|
|
7045
|
+
*
|
|
7046
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
|
|
7047
|
+
*/
|
|
7048
|
+
readonly maxActions: number;
|
|
7032
7049
|
/**
|
|
7033
7050
|
* 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.
|
|
7034
7051
|
*
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -801,6 +801,11 @@ interface NavigationPreloadState {
|
|
|
801
801
|
headerValue?: string;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
+
interface NotificationAction {
|
|
805
|
+
action: string;
|
|
806
|
+
title: string;
|
|
807
|
+
}
|
|
808
|
+
|
|
804
809
|
interface NotificationEventInit extends ExtendableEventInit {
|
|
805
810
|
action?: string;
|
|
806
811
|
notification: Notification;
|
|
@@ -6949,6 +6954,12 @@ interface NotificationEventMap {
|
|
|
6949
6954
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
6950
6955
|
*/
|
|
6951
6956
|
interface Notification extends EventTarget {
|
|
6957
|
+
/**
|
|
6958
|
+
* The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
|
|
6959
|
+
*
|
|
6960
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
|
|
6961
|
+
*/
|
|
6962
|
+
readonly actions: ReadonlyArray<NotificationAction>;
|
|
6952
6963
|
/**
|
|
6953
6964
|
* 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.
|
|
6954
6965
|
*
|
|
@@ -7026,6 +7037,12 @@ interface Notification extends EventTarget {
|
|
|
7026
7037
|
declare var Notification: {
|
|
7027
7038
|
prototype: Notification;
|
|
7028
7039
|
new(title: string, options?: NotificationOptions): Notification;
|
|
7040
|
+
/**
|
|
7041
|
+
* 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.
|
|
7042
|
+
*
|
|
7043
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
|
|
7044
|
+
*/
|
|
7045
|
+
readonly maxActions: number;
|
|
7029
7046
|
/**
|
|
7030
7047
|
* 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.
|
|
7031
7048
|
*
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -801,6 +801,11 @@ interface NavigationPreloadState {
|
|
|
801
801
|
headerValue?: string;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
+
interface NotificationAction {
|
|
805
|
+
action: string;
|
|
806
|
+
title: string;
|
|
807
|
+
}
|
|
808
|
+
|
|
804
809
|
interface NotificationEventInit extends ExtendableEventInit {
|
|
805
810
|
action?: string;
|
|
806
811
|
notification: Notification;
|
|
@@ -6949,6 +6954,12 @@ interface NotificationEventMap {
|
|
|
6949
6954
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
6950
6955
|
*/
|
|
6951
6956
|
interface Notification extends EventTarget {
|
|
6957
|
+
/**
|
|
6958
|
+
* The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
|
|
6959
|
+
*
|
|
6960
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
|
|
6961
|
+
*/
|
|
6962
|
+
readonly actions: ReadonlyArray<NotificationAction>;
|
|
6952
6963
|
/**
|
|
6953
6964
|
* 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.
|
|
6954
6965
|
*
|
|
@@ -7026,6 +7037,12 @@ interface Notification extends EventTarget {
|
|
|
7026
7037
|
declare var Notification: {
|
|
7027
7038
|
prototype: Notification;
|
|
7028
7039
|
new(title: string, options?: NotificationOptions): Notification;
|
|
7040
|
+
/**
|
|
7041
|
+
* 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.
|
|
7042
|
+
*
|
|
7043
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
|
|
7044
|
+
*/
|
|
7045
|
+
readonly maxActions: number;
|
|
7029
7046
|
/**
|
|
7030
7047
|
* 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.
|
|
7031
7048
|
*
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -801,6 +801,11 @@ interface NavigationPreloadState {
|
|
|
801
801
|
headerValue?: string;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
+
interface NotificationAction {
|
|
805
|
+
action: string;
|
|
806
|
+
title: string;
|
|
807
|
+
}
|
|
808
|
+
|
|
804
809
|
interface NotificationEventInit extends ExtendableEventInit {
|
|
805
810
|
action?: string;
|
|
806
811
|
notification: Notification;
|
|
@@ -6949,6 +6954,12 @@ interface NotificationEventMap {
|
|
|
6949
6954
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
6950
6955
|
*/
|
|
6951
6956
|
interface Notification extends EventTarget {
|
|
6957
|
+
/**
|
|
6958
|
+
* The **`actions`** read-only property of the Notification interface provides the actions available for users to choose from for interacting with the notification.
|
|
6959
|
+
*
|
|
6960
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/actions)
|
|
6961
|
+
*/
|
|
6962
|
+
readonly actions: ReadonlyArray<NotificationAction>;
|
|
6952
6963
|
/**
|
|
6953
6964
|
* 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.
|
|
6954
6965
|
*
|
|
@@ -7026,6 +7037,12 @@ interface Notification extends EventTarget {
|
|
|
7026
7037
|
declare var Notification: {
|
|
7027
7038
|
prototype: Notification;
|
|
7028
7039
|
new(title: string, options?: NotificationOptions): Notification;
|
|
7040
|
+
/**
|
|
7041
|
+
* 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.
|
|
7042
|
+
*
|
|
7043
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/maxActions_static)
|
|
7044
|
+
*/
|
|
7045
|
+
readonly maxActions: number;
|
|
7029
7046
|
/**
|
|
7030
7047
|
* 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.
|
|
7031
7048
|
*
|