@types/sharedworker 0.0.225 → 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 +1 -1
- package/index.d.ts +23 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +23 -1
- package/ts5.6/index.d.ts +23 -1
- package/ts5.9/index.d.ts +23 -1
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.
|
|
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
|
*
|
|
@@ -12595,8 +12612,13 @@ declare namespace WebAssembly {
|
|
|
12595
12612
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12596
12613
|
*/
|
|
12597
12614
|
interface Global<T extends ValueType = ValueType> {
|
|
12598
|
-
/**
|
|
12615
|
+
/**
|
|
12616
|
+
* The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable.
|
|
12617
|
+
*
|
|
12618
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/value)
|
|
12619
|
+
*/
|
|
12599
12620
|
value: ValueTypeMap[T];
|
|
12621
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/valueOf) */
|
|
12600
12622
|
valueOf(): ValueTypeMap[T];
|
|
12601
12623
|
}
|
|
12602
12624
|
|
package/package.json
CHANGED
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
|
*
|
|
@@ -12592,8 +12609,13 @@ declare namespace WebAssembly {
|
|
|
12592
12609
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12593
12610
|
*/
|
|
12594
12611
|
interface Global<T extends ValueType = ValueType> {
|
|
12595
|
-
/**
|
|
12612
|
+
/**
|
|
12613
|
+
* The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable.
|
|
12614
|
+
*
|
|
12615
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/value)
|
|
12616
|
+
*/
|
|
12596
12617
|
value: ValueTypeMap[T];
|
|
12618
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/valueOf) */
|
|
12597
12619
|
valueOf(): ValueTypeMap[T];
|
|
12598
12620
|
}
|
|
12599
12621
|
|
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
|
*
|
|
@@ -12592,8 +12609,13 @@ declare namespace WebAssembly {
|
|
|
12592
12609
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12593
12610
|
*/
|
|
12594
12611
|
interface Global<T extends ValueType = ValueType> {
|
|
12595
|
-
/**
|
|
12612
|
+
/**
|
|
12613
|
+
* The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable.
|
|
12614
|
+
*
|
|
12615
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/value)
|
|
12616
|
+
*/
|
|
12596
12617
|
value: ValueTypeMap[T];
|
|
12618
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/valueOf) */
|
|
12597
12619
|
valueOf(): ValueTypeMap[T];
|
|
12598
12620
|
}
|
|
12599
12621
|
|
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
|
*
|
|
@@ -12592,8 +12609,13 @@ declare namespace WebAssembly {
|
|
|
12592
12609
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12593
12610
|
*/
|
|
12594
12611
|
interface Global<T extends ValueType = ValueType> {
|
|
12595
|
-
/**
|
|
12612
|
+
/**
|
|
12613
|
+
* The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable.
|
|
12614
|
+
*
|
|
12615
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/value)
|
|
12616
|
+
*/
|
|
12596
12617
|
value: ValueTypeMap[T];
|
|
12618
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global/valueOf) */
|
|
12597
12619
|
valueOf(): ValueTypeMap[T];
|
|
12598
12620
|
}
|
|
12599
12621
|
|