@types/webworker 0.0.11 → 0.0.12

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
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
45
45
 
46
46
  ## Deploy Metadata
47
47
 
48
- You can read what changed in version 0.0.11 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.11.
48
+ You can read what changed in version 0.0.12 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.12.
package/index.d.ts CHANGED
@@ -1582,7 +1582,7 @@ declare var CSSMathClamp: {
1582
1582
  };
1583
1583
 
1584
1584
  /**
1585
- * 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.
1585
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
1586
1586
  *
1587
1587
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
1588
1588
  */
@@ -2653,6 +2653,38 @@ declare var CookieStore: {
2653
2653
  new(): CookieStore;
2654
2654
  };
2655
2655
 
2656
+ /**
2657
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
2658
+ * Available only in secure contexts.
2659
+ *
2660
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
2661
+ */
2662
+ interface CookieStoreManager {
2663
+ /**
2664
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
2665
+ *
2666
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
2667
+ */
2668
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
2669
+ /**
2670
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
2671
+ *
2672
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
2673
+ */
2674
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2675
+ /**
2676
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
2677
+ *
2678
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
2679
+ */
2680
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2681
+ }
2682
+
2683
+ declare var CookieStoreManager: {
2684
+ prototype: CookieStoreManager;
2685
+ new(): CookieStoreManager;
2686
+ };
2687
+
2656
2688
  /**
2657
2689
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2658
2690
  *
@@ -6889,7 +6921,7 @@ declare var Permissions: {
6889
6921
  };
6890
6922
 
6891
6923
  /**
6892
- * 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).
6924
+ * 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).
6893
6925
  *
6894
6926
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
6895
6927
  */
@@ -6901,14 +6933,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
6901
6933
  */
6902
6934
  readonly lengthComputable: boolean;
6903
6935
  /**
6904
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
6936
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
6905
6937
  *
6906
6938
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
6907
6939
  */
6908
6940
  readonly loaded: number;
6909
6941
  readonly target: T | null;
6910
6942
  /**
6911
- * 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.
6943
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
6912
6944
  *
6913
6945
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
6914
6946
  */
@@ -8050,6 +8082,7 @@ declare var ServiceWorkerContainer: {
8050
8082
 
8051
8083
  interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
8052
8084
  "activate": ExtendableEvent;
8085
+ "cookiechange": ExtendableCookieChangeEvent;
8053
8086
  "fetch": FetchEvent;
8054
8087
  "install": ExtendableEvent;
8055
8088
  "message": ExtendableMessageEvent;
@@ -8081,6 +8114,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
8081
8114
  readonly cookieStore: CookieStore;
8082
8115
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
8083
8116
  onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
8117
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
8118
+ oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
8084
8119
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
8085
8120
  onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
8086
8121
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -8143,6 +8178,12 @@ interface ServiceWorkerRegistration extends EventTarget {
8143
8178
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
8144
8179
  */
8145
8180
  readonly active: ServiceWorker | null;
8181
+ /**
8182
+ * 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.
8183
+ *
8184
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
8185
+ */
8186
+ readonly cookies: CookieStoreManager;
8146
8187
  /**
8147
8188
  * The **`installing`** read-only property of the initially set to `null`.
8148
8189
  *
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/webworker",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -1582,7 +1582,7 @@ declare var CSSMathClamp: {
1582
1582
  };
1583
1583
 
1584
1584
  /**
1585
- * 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.
1585
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
1586
1586
  *
1587
1587
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
1588
1588
  */
@@ -2653,6 +2653,38 @@ declare var CookieStore: {
2653
2653
  new(): CookieStore;
2654
2654
  };
2655
2655
 
2656
+ /**
2657
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
2658
+ * Available only in secure contexts.
2659
+ *
2660
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
2661
+ */
2662
+ interface CookieStoreManager {
2663
+ /**
2664
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
2665
+ *
2666
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
2667
+ */
2668
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
2669
+ /**
2670
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
2671
+ *
2672
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
2673
+ */
2674
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2675
+ /**
2676
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
2677
+ *
2678
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
2679
+ */
2680
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2681
+ }
2682
+
2683
+ declare var CookieStoreManager: {
2684
+ prototype: CookieStoreManager;
2685
+ new(): CookieStoreManager;
2686
+ };
2687
+
2656
2688
  /**
2657
2689
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2658
2690
  *
@@ -6889,7 +6921,7 @@ declare var Permissions: {
6889
6921
  };
6890
6922
 
6891
6923
  /**
6892
- * 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).
6924
+ * 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).
6893
6925
  *
6894
6926
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
6895
6927
  */
@@ -6901,14 +6933,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
6901
6933
  */
6902
6934
  readonly lengthComputable: boolean;
6903
6935
  /**
6904
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
6936
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
6905
6937
  *
6906
6938
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
6907
6939
  */
6908
6940
  readonly loaded: number;
6909
6941
  readonly target: T | null;
6910
6942
  /**
6911
- * 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.
6943
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
6912
6944
  *
6913
6945
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
6914
6946
  */
@@ -8050,6 +8082,7 @@ declare var ServiceWorkerContainer: {
8050
8082
 
8051
8083
  interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
8052
8084
  "activate": ExtendableEvent;
8085
+ "cookiechange": ExtendableCookieChangeEvent;
8053
8086
  "fetch": FetchEvent;
8054
8087
  "install": ExtendableEvent;
8055
8088
  "message": ExtendableMessageEvent;
@@ -8081,6 +8114,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
8081
8114
  readonly cookieStore: CookieStore;
8082
8115
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
8083
8116
  onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
8117
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
8118
+ oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
8084
8119
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
8085
8120
  onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
8086
8121
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -8143,6 +8178,12 @@ interface ServiceWorkerRegistration extends EventTarget {
8143
8178
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
8144
8179
  */
8145
8180
  readonly active: ServiceWorker | null;
8181
+ /**
8182
+ * 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.
8183
+ *
8184
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
8185
+ */
8186
+ readonly cookies: CookieStoreManager;
8146
8187
  /**
8147
8188
  * The **`installing`** read-only property of the initially set to `null`.
8148
8189
  *
@@ -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
@@ -1582,7 +1582,7 @@ declare var CSSMathClamp: {
1582
1582
  };
1583
1583
 
1584
1584
  /**
1585
- * 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.
1585
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
1586
1586
  *
1587
1587
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
1588
1588
  */
@@ -2653,6 +2653,38 @@ declare var CookieStore: {
2653
2653
  new(): CookieStore;
2654
2654
  };
2655
2655
 
2656
+ /**
2657
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
2658
+ * Available only in secure contexts.
2659
+ *
2660
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
2661
+ */
2662
+ interface CookieStoreManager {
2663
+ /**
2664
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
2665
+ *
2666
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
2667
+ */
2668
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
2669
+ /**
2670
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
2671
+ *
2672
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
2673
+ */
2674
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2675
+ /**
2676
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
2677
+ *
2678
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
2679
+ */
2680
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
2681
+ }
2682
+
2683
+ declare var CookieStoreManager: {
2684
+ prototype: CookieStoreManager;
2685
+ new(): CookieStoreManager;
2686
+ };
2687
+
2656
2688
  /**
2657
2689
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2658
2690
  *
@@ -6889,7 +6921,7 @@ declare var Permissions: {
6889
6921
  };
6890
6922
 
6891
6923
  /**
6892
- * 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).
6924
+ * 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).
6893
6925
  *
6894
6926
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
6895
6927
  */
@@ -6901,14 +6933,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
6901
6933
  */
6902
6934
  readonly lengthComputable: boolean;
6903
6935
  /**
6904
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
6936
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
6905
6937
  *
6906
6938
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
6907
6939
  */
6908
6940
  readonly loaded: number;
6909
6941
  readonly target: T | null;
6910
6942
  /**
6911
- * 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.
6943
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
6912
6944
  *
6913
6945
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
6914
6946
  */
@@ -8050,6 +8082,7 @@ declare var ServiceWorkerContainer: {
8050
8082
 
8051
8083
  interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
8052
8084
  "activate": ExtendableEvent;
8085
+ "cookiechange": ExtendableCookieChangeEvent;
8053
8086
  "fetch": FetchEvent;
8054
8087
  "install": ExtendableEvent;
8055
8088
  "message": ExtendableMessageEvent;
@@ -8081,6 +8114,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
8081
8114
  readonly cookieStore: CookieStore;
8082
8115
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
8083
8116
  onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
8117
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
8118
+ oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
8084
8119
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
8085
8120
  onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
8086
8121
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
@@ -8143,6 +8178,12 @@ interface ServiceWorkerRegistration extends EventTarget {
8143
8178
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
8144
8179
  */
8145
8180
  readonly active: ServiceWorker | null;
8181
+ /**
8182
+ * 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.
8183
+ *
8184
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
8185
+ */
8186
+ readonly cookies: CookieStoreManager;
8146
8187
  /**
8147
8188
  * The **`installing`** read-only property of the initially set to `null`.
8148
8189
  *
@@ -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
  }