@types/sharedworker 0.0.226 → 0.0.228

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.228 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.228.
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
  *
@@ -12547,6 +12564,47 @@ declare var XMLHttpRequestUpload: {
12547
12564
  new(): XMLHttpRequestUpload;
12548
12565
  };
12549
12566
 
12567
+ declare namespace GPUBufferUsage {
12568
+ const MAP_READ: 0x0001;
12569
+ const MAP_WRITE: 0x0002;
12570
+ const COPY_SRC: 0x0004;
12571
+ const COPY_DST: 0x0008;
12572
+ const INDEX: 0x0010;
12573
+ const VERTEX: 0x0020;
12574
+ const UNIFORM: 0x0040;
12575
+ const STORAGE: 0x0080;
12576
+ const INDIRECT: 0x0100;
12577
+ const QUERY_RESOLVE: 0x0200;
12578
+ }
12579
+
12580
+ declare namespace GPUColorWrite {
12581
+ const RED: 0x1;
12582
+ const GREEN: 0x2;
12583
+ const BLUE: 0x4;
12584
+ const ALPHA: 0x8;
12585
+ const ALL: 0xF;
12586
+ }
12587
+
12588
+ declare namespace GPUMapMode {
12589
+ const READ: 0x0001;
12590
+ const WRITE: 0x0002;
12591
+ }
12592
+
12593
+ declare namespace GPUShaderStage {
12594
+ const VERTEX: 0x1;
12595
+ const FRAGMENT: 0x2;
12596
+ const COMPUTE: 0x4;
12597
+ }
12598
+
12599
+ declare namespace GPUTextureUsage {
12600
+ const COPY_SRC: 0x01;
12601
+ const COPY_DST: 0x02;
12602
+ const TEXTURE_BINDING: 0x04;
12603
+ const STORAGE_BINDING: 0x08;
12604
+ const RENDER_ATTACHMENT: 0x10;
12605
+ const TRANSIENT_ATTACHMENT: 0x20;
12606
+ }
12607
+
12550
12608
  declare namespace WebAssembly {
12551
12609
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12552
12610
  interface CompileError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.226",
3
+ "version": "0.0.228",
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
  *
@@ -12544,6 +12561,47 @@ declare var XMLHttpRequestUpload: {
12544
12561
  new(): XMLHttpRequestUpload;
12545
12562
  };
12546
12563
 
12564
+ declare namespace GPUBufferUsage {
12565
+ const MAP_READ: 0x0001;
12566
+ const MAP_WRITE: 0x0002;
12567
+ const COPY_SRC: 0x0004;
12568
+ const COPY_DST: 0x0008;
12569
+ const INDEX: 0x0010;
12570
+ const VERTEX: 0x0020;
12571
+ const UNIFORM: 0x0040;
12572
+ const STORAGE: 0x0080;
12573
+ const INDIRECT: 0x0100;
12574
+ const QUERY_RESOLVE: 0x0200;
12575
+ }
12576
+
12577
+ declare namespace GPUColorWrite {
12578
+ const RED: 0x1;
12579
+ const GREEN: 0x2;
12580
+ const BLUE: 0x4;
12581
+ const ALPHA: 0x8;
12582
+ const ALL: 0xF;
12583
+ }
12584
+
12585
+ declare namespace GPUMapMode {
12586
+ const READ: 0x0001;
12587
+ const WRITE: 0x0002;
12588
+ }
12589
+
12590
+ declare namespace GPUShaderStage {
12591
+ const VERTEX: 0x1;
12592
+ const FRAGMENT: 0x2;
12593
+ const COMPUTE: 0x4;
12594
+ }
12595
+
12596
+ declare namespace GPUTextureUsage {
12597
+ const COPY_SRC: 0x01;
12598
+ const COPY_DST: 0x02;
12599
+ const TEXTURE_BINDING: 0x04;
12600
+ const STORAGE_BINDING: 0x08;
12601
+ const RENDER_ATTACHMENT: 0x10;
12602
+ const TRANSIENT_ATTACHMENT: 0x20;
12603
+ }
12604
+
12547
12605
  declare namespace WebAssembly {
12548
12606
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12549
12607
  interface CompileError extends Error {
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
  *
@@ -12544,6 +12561,47 @@ declare var XMLHttpRequestUpload: {
12544
12561
  new(): XMLHttpRequestUpload;
12545
12562
  };
12546
12563
 
12564
+ declare namespace GPUBufferUsage {
12565
+ const MAP_READ: 0x0001;
12566
+ const MAP_WRITE: 0x0002;
12567
+ const COPY_SRC: 0x0004;
12568
+ const COPY_DST: 0x0008;
12569
+ const INDEX: 0x0010;
12570
+ const VERTEX: 0x0020;
12571
+ const UNIFORM: 0x0040;
12572
+ const STORAGE: 0x0080;
12573
+ const INDIRECT: 0x0100;
12574
+ const QUERY_RESOLVE: 0x0200;
12575
+ }
12576
+
12577
+ declare namespace GPUColorWrite {
12578
+ const RED: 0x1;
12579
+ const GREEN: 0x2;
12580
+ const BLUE: 0x4;
12581
+ const ALPHA: 0x8;
12582
+ const ALL: 0xF;
12583
+ }
12584
+
12585
+ declare namespace GPUMapMode {
12586
+ const READ: 0x0001;
12587
+ const WRITE: 0x0002;
12588
+ }
12589
+
12590
+ declare namespace GPUShaderStage {
12591
+ const VERTEX: 0x1;
12592
+ const FRAGMENT: 0x2;
12593
+ const COMPUTE: 0x4;
12594
+ }
12595
+
12596
+ declare namespace GPUTextureUsage {
12597
+ const COPY_SRC: 0x01;
12598
+ const COPY_DST: 0x02;
12599
+ const TEXTURE_BINDING: 0x04;
12600
+ const STORAGE_BINDING: 0x08;
12601
+ const RENDER_ATTACHMENT: 0x10;
12602
+ const TRANSIENT_ATTACHMENT: 0x20;
12603
+ }
12604
+
12547
12605
  declare namespace WebAssembly {
12548
12606
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12549
12607
  interface CompileError extends Error {
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
  *
@@ -12544,6 +12561,47 @@ declare var XMLHttpRequestUpload: {
12544
12561
  new(): XMLHttpRequestUpload;
12545
12562
  };
12546
12563
 
12564
+ declare namespace GPUBufferUsage {
12565
+ const MAP_READ: 0x0001;
12566
+ const MAP_WRITE: 0x0002;
12567
+ const COPY_SRC: 0x0004;
12568
+ const COPY_DST: 0x0008;
12569
+ const INDEX: 0x0010;
12570
+ const VERTEX: 0x0020;
12571
+ const UNIFORM: 0x0040;
12572
+ const STORAGE: 0x0080;
12573
+ const INDIRECT: 0x0100;
12574
+ const QUERY_RESOLVE: 0x0200;
12575
+ }
12576
+
12577
+ declare namespace GPUColorWrite {
12578
+ const RED: 0x1;
12579
+ const GREEN: 0x2;
12580
+ const BLUE: 0x4;
12581
+ const ALPHA: 0x8;
12582
+ const ALL: 0xF;
12583
+ }
12584
+
12585
+ declare namespace GPUMapMode {
12586
+ const READ: 0x0001;
12587
+ const WRITE: 0x0002;
12588
+ }
12589
+
12590
+ declare namespace GPUShaderStage {
12591
+ const VERTEX: 0x1;
12592
+ const FRAGMENT: 0x2;
12593
+ const COMPUTE: 0x4;
12594
+ }
12595
+
12596
+ declare namespace GPUTextureUsage {
12597
+ const COPY_SRC: 0x01;
12598
+ const COPY_DST: 0x02;
12599
+ const TEXTURE_BINDING: 0x04;
12600
+ const STORAGE_BINDING: 0x08;
12601
+ const RENDER_ATTACHMENT: 0x10;
12602
+ const TRANSIENT_ATTACHMENT: 0x20;
12603
+ }
12604
+
12547
12605
  declare namespace WebAssembly {
12548
12606
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12549
12607
  interface CompileError extends Error {