@types/serviceworker 0.0.138 → 0.0.139

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
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.138 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.138.
31
+ You can read what changed in version 0.0.139 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.139.
package/index.d.ts CHANGED
@@ -1114,7 +1114,7 @@ declare var CSSMathClamp: {
1114
1114
  };
1115
1115
 
1116
1116
  /**
1117
- * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>).` It inherits properties and methods from its parent CSSNumericValue.
1117
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
1118
1118
  *
1119
1119
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
1120
1120
  */
@@ -2185,6 +2185,38 @@ declare var CookieStore: {
2185
2185
  new(): CookieStore;
2186
2186
  };
2187
2187
 
2188
+ /**
2189
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
2190
+ * Available only in secure contexts.
2191
+ *
2192
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
2193
+ */
2194
+ interface CookieStoreManager {
2195
+ /**
2196
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
2197
+ *
2198
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
2199
+ */
2200
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
2201
+ /**
2202
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
2203
+ *
2204
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
2205
+ */
2206
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2207
+ /**
2208
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
2209
+ *
2210
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
2211
+ */
2212
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2213
+ }
2214
+
2215
+ declare var CookieStoreManager: {
2216
+ prototype: CookieStoreManager;
2217
+ new(): CookieStoreManager;
2218
+ };
2219
+
2188
2220
  /**
2189
2221
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2190
2222
  *
@@ -6028,7 +6060,7 @@ declare var Permissions: {
6028
6060
  };
6029
6061
 
6030
6062
  /**
6031
- * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
6063
+ * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
6032
6064
  *
6033
6065
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
6034
6066
  */
@@ -6040,14 +6072,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
6040
6072
  */
6041
6073
  readonly lengthComputable: boolean;
6042
6074
  /**
6043
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
6075
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
6044
6076
  *
6045
6077
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
6046
6078
  */
6047
6079
  readonly loaded: number;
6048
6080
  readonly target: T | null;
6049
6081
  /**
6050
- * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed.
6082
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
6051
6083
  *
6052
6084
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
6053
6085
  */
@@ -6948,6 +6980,7 @@ declare var ServiceWorkerContainer: {
6948
6980
 
6949
6981
  interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
6950
6982
  "activate": ExtendableEvent;
6983
+ "cookiechange": ExtendableCookieChangeEvent;
6951
6984
  "fetch": FetchEvent;
6952
6985
  "install": ExtendableEvent;
6953
6986
  "message": ExtendableMessageEvent;
@@ -6979,6 +7012,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
6979
7012
  readonly cookieStore: CookieStore;
6980
7013
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
6981
7014
  onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
7015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
7016
+ oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
6982
7017
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
6983
7018
  onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
6984
7019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -7041,6 +7076,12 @@ interface ServiceWorkerRegistration extends EventTarget {
7041
7076
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
7042
7077
  */
7043
7078
  readonly active: ServiceWorker | null;
7079
+ /**
7080
+ * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
7081
+ *
7082
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
7083
+ */
7084
+ readonly cookies: CookieStoreManager;
7044
7085
  /**
7045
7086
  * The **`installing`** read-only property of the initially set to `null`.
7046
7087
  *
@@ -11165,6 +11206,8 @@ declare var clients: Clients;
11165
11206
  declare var cookieStore: CookieStore;
11166
11207
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
11167
11208
  declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
11209
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
11210
+ declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
11168
11211
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
11169
11212
  declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
11170
11213
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
package/iterable.d.ts CHANGED
@@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles {
42
42
  setLineDash(segments: Iterable<number>): void;
43
43
  }
44
44
 
45
+ interface CookieStoreManager {
46
+ /**
47
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
48
+ *
49
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
50
+ */
51
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
52
+ /**
53
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
54
+ *
55
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
56
+ */
57
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
58
+ }
59
+
45
60
  interface DOMStringList {
46
61
  [Symbol.iterator](): ArrayIterator<string>;
47
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.138",
3
+ "version": "0.0.139",
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
@@ -1114,7 +1114,7 @@ declare var CSSMathClamp: {
1114
1114
  };
1115
1115
 
1116
1116
  /**
1117
- * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>).` It inherits properties and methods from its parent CSSNumericValue.
1117
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
1118
1118
  *
1119
1119
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
1120
1120
  */
@@ -2185,6 +2185,38 @@ declare var CookieStore: {
2185
2185
  new(): CookieStore;
2186
2186
  };
2187
2187
 
2188
+ /**
2189
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
2190
+ * Available only in secure contexts.
2191
+ *
2192
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
2193
+ */
2194
+ interface CookieStoreManager {
2195
+ /**
2196
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
2197
+ *
2198
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
2199
+ */
2200
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
2201
+ /**
2202
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
2203
+ *
2204
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
2205
+ */
2206
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2207
+ /**
2208
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
2209
+ *
2210
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
2211
+ */
2212
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2213
+ }
2214
+
2215
+ declare var CookieStoreManager: {
2216
+ prototype: CookieStoreManager;
2217
+ new(): CookieStoreManager;
2218
+ };
2219
+
2188
2220
  /**
2189
2221
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2190
2222
  *
@@ -6028,7 +6060,7 @@ declare var Permissions: {
6028
6060
  };
6029
6061
 
6030
6062
  /**
6031
- * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
6063
+ * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
6032
6064
  *
6033
6065
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
6034
6066
  */
@@ -6040,14 +6072,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
6040
6072
  */
6041
6073
  readonly lengthComputable: boolean;
6042
6074
  /**
6043
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
6075
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
6044
6076
  *
6045
6077
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
6046
6078
  */
6047
6079
  readonly loaded: number;
6048
6080
  readonly target: T | null;
6049
6081
  /**
6050
- * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed.
6082
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
6051
6083
  *
6052
6084
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
6053
6085
  */
@@ -6948,6 +6980,7 @@ declare var ServiceWorkerContainer: {
6948
6980
 
6949
6981
  interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
6950
6982
  "activate": ExtendableEvent;
6983
+ "cookiechange": ExtendableCookieChangeEvent;
6951
6984
  "fetch": FetchEvent;
6952
6985
  "install": ExtendableEvent;
6953
6986
  "message": ExtendableMessageEvent;
@@ -6979,6 +7012,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
6979
7012
  readonly cookieStore: CookieStore;
6980
7013
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
6981
7014
  onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
7015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
7016
+ oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
6982
7017
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
6983
7018
  onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
6984
7019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -7041,6 +7076,12 @@ interface ServiceWorkerRegistration extends EventTarget {
7041
7076
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
7042
7077
  */
7043
7078
  readonly active: ServiceWorker | null;
7079
+ /**
7080
+ * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
7081
+ *
7082
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
7083
+ */
7084
+ readonly cookies: CookieStoreManager;
7044
7085
  /**
7045
7086
  * The **`installing`** read-only property of the initially set to `null`.
7046
7087
  *
@@ -11165,6 +11206,8 @@ declare var clients: Clients;
11165
11206
  declare var cookieStore: CookieStore;
11166
11207
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
11167
11208
  declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
11209
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
11210
+ declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
11168
11211
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
11169
11212
  declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
11170
11213
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles {
42
42
  setLineDash(segments: Iterable<number>): void;
43
43
  }
44
44
 
45
+ interface CookieStoreManager {
46
+ /**
47
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
48
+ *
49
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
50
+ */
51
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
52
+ /**
53
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
54
+ *
55
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
56
+ */
57
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
58
+ }
59
+
45
60
  interface DOMStringList {
46
61
  [Symbol.iterator](): IterableIterator<string>;
47
62
  }
package/ts5.6/index.d.ts CHANGED
@@ -1114,7 +1114,7 @@ declare var CSSMathClamp: {
1114
1114
  };
1115
1115
 
1116
1116
  /**
1117
- * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>).` It inherits properties and methods from its parent CSSNumericValue.
1117
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
1118
1118
  *
1119
1119
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
1120
1120
  */
@@ -2185,6 +2185,38 @@ declare var CookieStore: {
2185
2185
  new(): CookieStore;
2186
2186
  };
2187
2187
 
2188
+ /**
2189
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
2190
+ * Available only in secure contexts.
2191
+ *
2192
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
2193
+ */
2194
+ interface CookieStoreManager {
2195
+ /**
2196
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
2197
+ *
2198
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
2199
+ */
2200
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
2201
+ /**
2202
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
2203
+ *
2204
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
2205
+ */
2206
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2207
+ /**
2208
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
2209
+ *
2210
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
2211
+ */
2212
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2213
+ }
2214
+
2215
+ declare var CookieStoreManager: {
2216
+ prototype: CookieStoreManager;
2217
+ new(): CookieStoreManager;
2218
+ };
2219
+
2188
2220
  /**
2189
2221
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2190
2222
  *
@@ -6028,7 +6060,7 @@ declare var Permissions: {
6028
6060
  };
6029
6061
 
6030
6062
  /**
6031
- * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
6063
+ * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
6032
6064
  *
6033
6065
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
6034
6066
  */
@@ -6040,14 +6072,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
6040
6072
  */
6041
6073
  readonly lengthComputable: boolean;
6042
6074
  /**
6043
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
6075
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
6044
6076
  *
6045
6077
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
6046
6078
  */
6047
6079
  readonly loaded: number;
6048
6080
  readonly target: T | null;
6049
6081
  /**
6050
- * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed.
6082
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
6051
6083
  *
6052
6084
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
6053
6085
  */
@@ -6948,6 +6980,7 @@ declare var ServiceWorkerContainer: {
6948
6980
 
6949
6981
  interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
6950
6982
  "activate": ExtendableEvent;
6983
+ "cookiechange": ExtendableCookieChangeEvent;
6951
6984
  "fetch": FetchEvent;
6952
6985
  "install": ExtendableEvent;
6953
6986
  "message": ExtendableMessageEvent;
@@ -6979,6 +7012,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
6979
7012
  readonly cookieStore: CookieStore;
6980
7013
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
6981
7014
  onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
7015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
7016
+ oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
6982
7017
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
6983
7018
  onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
6984
7019
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -7041,6 +7076,12 @@ interface ServiceWorkerRegistration extends EventTarget {
7041
7076
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
7042
7077
  */
7043
7078
  readonly active: ServiceWorker | null;
7079
+ /**
7080
+ * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
7081
+ *
7082
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
7083
+ */
7084
+ readonly cookies: CookieStoreManager;
7044
7085
  /**
7045
7086
  * The **`installing`** read-only property of the initially set to `null`.
7046
7087
  *
@@ -11165,6 +11206,8 @@ declare var clients: Clients;
11165
11206
  declare var cookieStore: CookieStore;
11166
11207
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
11167
11208
  declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
11209
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
11210
+ declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
11168
11211
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
11169
11212
  declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
11170
11213
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -42,6 +42,21 @@ interface CanvasPathDrawingStyles {
42
42
  setLineDash(segments: Iterable<number>): void;
43
43
  }
44
44
 
45
+ interface CookieStoreManager {
46
+ /**
47
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
48
+ *
49
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
50
+ */
51
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
52
+ /**
53
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
54
+ *
55
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
56
+ */
57
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
58
+ }
59
+
45
60
  interface DOMStringList {
46
61
  [Symbol.iterator](): ArrayIterator<string>;
47
62
  }