@types/serviceworker 0.0.197 → 0.0.199

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
@@ -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.197 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.197.
33
+ You can read what changed in version 0.0.199 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.199.
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
  *
@@ -12821,6 +12838,47 @@ declare var WritableStreamDefaultWriter: {
12821
12838
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12822
12839
  };
12823
12840
 
12841
+ declare namespace GPUBufferUsage {
12842
+ const MAP_READ: 0x0001;
12843
+ const MAP_WRITE: 0x0002;
12844
+ const COPY_SRC: 0x0004;
12845
+ const COPY_DST: 0x0008;
12846
+ const INDEX: 0x0010;
12847
+ const VERTEX: 0x0020;
12848
+ const UNIFORM: 0x0040;
12849
+ const STORAGE: 0x0080;
12850
+ const INDIRECT: 0x0100;
12851
+ const QUERY_RESOLVE: 0x0200;
12852
+ }
12853
+
12854
+ declare namespace GPUColorWrite {
12855
+ const RED: 0x1;
12856
+ const GREEN: 0x2;
12857
+ const BLUE: 0x4;
12858
+ const ALPHA: 0x8;
12859
+ const ALL: 0xF;
12860
+ }
12861
+
12862
+ declare namespace GPUMapMode {
12863
+ const READ: 0x0001;
12864
+ const WRITE: 0x0002;
12865
+ }
12866
+
12867
+ declare namespace GPUShaderStage {
12868
+ const VERTEX: 0x1;
12869
+ const FRAGMENT: 0x2;
12870
+ const COMPUTE: 0x4;
12871
+ }
12872
+
12873
+ declare namespace GPUTextureUsage {
12874
+ const COPY_SRC: 0x01;
12875
+ const COPY_DST: 0x02;
12876
+ const TEXTURE_BINDING: 0x04;
12877
+ const STORAGE_BINDING: 0x08;
12878
+ const RENDER_ATTACHMENT: 0x10;
12879
+ const TRANSIENT_ATTACHMENT: 0x20;
12880
+ }
12881
+
12824
12882
  declare namespace WebAssembly {
12825
12883
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12826
12884
  interface CompileError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.197",
3
+ "version": "0.0.199",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
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
  *
@@ -12818,6 +12835,47 @@ declare var WritableStreamDefaultWriter: {
12818
12835
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12819
12836
  };
12820
12837
 
12838
+ declare namespace GPUBufferUsage {
12839
+ const MAP_READ: 0x0001;
12840
+ const MAP_WRITE: 0x0002;
12841
+ const COPY_SRC: 0x0004;
12842
+ const COPY_DST: 0x0008;
12843
+ const INDEX: 0x0010;
12844
+ const VERTEX: 0x0020;
12845
+ const UNIFORM: 0x0040;
12846
+ const STORAGE: 0x0080;
12847
+ const INDIRECT: 0x0100;
12848
+ const QUERY_RESOLVE: 0x0200;
12849
+ }
12850
+
12851
+ declare namespace GPUColorWrite {
12852
+ const RED: 0x1;
12853
+ const GREEN: 0x2;
12854
+ const BLUE: 0x4;
12855
+ const ALPHA: 0x8;
12856
+ const ALL: 0xF;
12857
+ }
12858
+
12859
+ declare namespace GPUMapMode {
12860
+ const READ: 0x0001;
12861
+ const WRITE: 0x0002;
12862
+ }
12863
+
12864
+ declare namespace GPUShaderStage {
12865
+ const VERTEX: 0x1;
12866
+ const FRAGMENT: 0x2;
12867
+ const COMPUTE: 0x4;
12868
+ }
12869
+
12870
+ declare namespace GPUTextureUsage {
12871
+ const COPY_SRC: 0x01;
12872
+ const COPY_DST: 0x02;
12873
+ const TEXTURE_BINDING: 0x04;
12874
+ const STORAGE_BINDING: 0x08;
12875
+ const RENDER_ATTACHMENT: 0x10;
12876
+ const TRANSIENT_ATTACHMENT: 0x20;
12877
+ }
12878
+
12821
12879
  declare namespace WebAssembly {
12822
12880
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12823
12881
  interface CompileError extends Error {
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
  *
@@ -12818,6 +12835,47 @@ declare var WritableStreamDefaultWriter: {
12818
12835
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12819
12836
  };
12820
12837
 
12838
+ declare namespace GPUBufferUsage {
12839
+ const MAP_READ: 0x0001;
12840
+ const MAP_WRITE: 0x0002;
12841
+ const COPY_SRC: 0x0004;
12842
+ const COPY_DST: 0x0008;
12843
+ const INDEX: 0x0010;
12844
+ const VERTEX: 0x0020;
12845
+ const UNIFORM: 0x0040;
12846
+ const STORAGE: 0x0080;
12847
+ const INDIRECT: 0x0100;
12848
+ const QUERY_RESOLVE: 0x0200;
12849
+ }
12850
+
12851
+ declare namespace GPUColorWrite {
12852
+ const RED: 0x1;
12853
+ const GREEN: 0x2;
12854
+ const BLUE: 0x4;
12855
+ const ALPHA: 0x8;
12856
+ const ALL: 0xF;
12857
+ }
12858
+
12859
+ declare namespace GPUMapMode {
12860
+ const READ: 0x0001;
12861
+ const WRITE: 0x0002;
12862
+ }
12863
+
12864
+ declare namespace GPUShaderStage {
12865
+ const VERTEX: 0x1;
12866
+ const FRAGMENT: 0x2;
12867
+ const COMPUTE: 0x4;
12868
+ }
12869
+
12870
+ declare namespace GPUTextureUsage {
12871
+ const COPY_SRC: 0x01;
12872
+ const COPY_DST: 0x02;
12873
+ const TEXTURE_BINDING: 0x04;
12874
+ const STORAGE_BINDING: 0x08;
12875
+ const RENDER_ATTACHMENT: 0x10;
12876
+ const TRANSIENT_ATTACHMENT: 0x20;
12877
+ }
12878
+
12821
12879
  declare namespace WebAssembly {
12822
12880
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12823
12881
  interface CompileError extends Error {
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
  *
@@ -12818,6 +12835,47 @@ declare var WritableStreamDefaultWriter: {
12818
12835
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12819
12836
  };
12820
12837
 
12838
+ declare namespace GPUBufferUsage {
12839
+ const MAP_READ: 0x0001;
12840
+ const MAP_WRITE: 0x0002;
12841
+ const COPY_SRC: 0x0004;
12842
+ const COPY_DST: 0x0008;
12843
+ const INDEX: 0x0010;
12844
+ const VERTEX: 0x0020;
12845
+ const UNIFORM: 0x0040;
12846
+ const STORAGE: 0x0080;
12847
+ const INDIRECT: 0x0100;
12848
+ const QUERY_RESOLVE: 0x0200;
12849
+ }
12850
+
12851
+ declare namespace GPUColorWrite {
12852
+ const RED: 0x1;
12853
+ const GREEN: 0x2;
12854
+ const BLUE: 0x4;
12855
+ const ALPHA: 0x8;
12856
+ const ALL: 0xF;
12857
+ }
12858
+
12859
+ declare namespace GPUMapMode {
12860
+ const READ: 0x0001;
12861
+ const WRITE: 0x0002;
12862
+ }
12863
+
12864
+ declare namespace GPUShaderStage {
12865
+ const VERTEX: 0x1;
12866
+ const FRAGMENT: 0x2;
12867
+ const COMPUTE: 0x4;
12868
+ }
12869
+
12870
+ declare namespace GPUTextureUsage {
12871
+ const COPY_SRC: 0x01;
12872
+ const COPY_DST: 0x02;
12873
+ const TEXTURE_BINDING: 0x04;
12874
+ const STORAGE_BINDING: 0x08;
12875
+ const RENDER_ATTACHMENT: 0x10;
12876
+ const TRANSIENT_ATTACHMENT: 0x20;
12877
+ }
12878
+
12821
12879
  declare namespace WebAssembly {
12822
12880
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12823
12881
  interface CompileError extends Error {