@types/serviceworker 0.0.138 → 0.0.140
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 +47 -10
- package/iterable.d.ts +15 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +47 -10
- package/ts5.5/iterable.d.ts +15 -0
- package/ts5.6/index.d.ts +47 -10
- package/ts5.6/iterable.d.ts +15 -0
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.
|
|
31
|
+
You can read what changed in version 0.0.140 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.140.
|
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>)
|
|
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
|
*
|
|
@@ -5190,12 +5222,6 @@ interface NotificationEventMap {
|
|
|
5190
5222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
5191
5223
|
*/
|
|
5192
5224
|
interface Notification extends EventTarget {
|
|
5193
|
-
/**
|
|
5194
|
-
* The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
|
|
5195
|
-
*
|
|
5196
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
|
|
5197
|
-
*/
|
|
5198
|
-
readonly badge: string;
|
|
5199
5225
|
/**
|
|
5200
5226
|
* The **`body`** read-only property of the specified in the `body` option of the A string.
|
|
5201
5227
|
*
|
|
@@ -6028,7 +6054,7 @@ declare var Permissions: {
|
|
|
6028
6054
|
};
|
|
6029
6055
|
|
|
6030
6056
|
/**
|
|
6031
|
-
* The **`ProgressEvent`** interface represents events
|
|
6057
|
+
* 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
6058
|
*
|
|
6033
6059
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
|
|
6034
6060
|
*/
|
|
@@ -6040,14 +6066,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
|
6040
6066
|
*/
|
|
6041
6067
|
readonly lengthComputable: boolean;
|
|
6042
6068
|
/**
|
|
6043
|
-
* The **`ProgressEvent.loaded`** read-only property is a
|
|
6069
|
+
* The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
|
|
6044
6070
|
*
|
|
6045
6071
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
|
|
6046
6072
|
*/
|
|
6047
6073
|
readonly loaded: number;
|
|
6048
6074
|
readonly target: T | null;
|
|
6049
6075
|
/**
|
|
6050
|
-
* The **`ProgressEvent.total`** read-only property is a
|
|
6076
|
+
* The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
|
|
6051
6077
|
*
|
|
6052
6078
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
|
|
6053
6079
|
*/
|
|
@@ -6948,6 +6974,7 @@ declare var ServiceWorkerContainer: {
|
|
|
6948
6974
|
|
|
6949
6975
|
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
6950
6976
|
"activate": ExtendableEvent;
|
|
6977
|
+
"cookiechange": ExtendableCookieChangeEvent;
|
|
6951
6978
|
"fetch": FetchEvent;
|
|
6952
6979
|
"install": ExtendableEvent;
|
|
6953
6980
|
"message": ExtendableMessageEvent;
|
|
@@ -6979,6 +7006,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
6979
7006
|
readonly cookieStore: CookieStore;
|
|
6980
7007
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
|
|
6981
7008
|
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
7009
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
|
|
7010
|
+
oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
|
|
6982
7011
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
|
|
6983
7012
|
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
|
|
6984
7013
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
|
|
@@ -7041,6 +7070,12 @@ interface ServiceWorkerRegistration extends EventTarget {
|
|
|
7041
7070
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
|
|
7042
7071
|
*/
|
|
7043
7072
|
readonly active: ServiceWorker | null;
|
|
7073
|
+
/**
|
|
7074
|
+
* 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.
|
|
7075
|
+
*
|
|
7076
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
|
|
7077
|
+
*/
|
|
7078
|
+
readonly cookies: CookieStoreManager;
|
|
7044
7079
|
/**
|
|
7045
7080
|
* The **`installing`** read-only property of the initially set to `null`.
|
|
7046
7081
|
*
|
|
@@ -11165,6 +11200,8 @@ declare var clients: Clients;
|
|
|
11165
11200
|
declare var cookieStore: CookieStore;
|
|
11166
11201
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
|
|
11167
11202
|
declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
11203
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
|
|
11204
|
+
declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
|
|
11168
11205
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
|
|
11169
11206
|
declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
|
|
11170
11207
|
/** [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
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>)
|
|
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
|
*
|
|
@@ -5190,12 +5222,6 @@ interface NotificationEventMap {
|
|
|
5190
5222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
5191
5223
|
*/
|
|
5192
5224
|
interface Notification extends EventTarget {
|
|
5193
|
-
/**
|
|
5194
|
-
* The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
|
|
5195
|
-
*
|
|
5196
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
|
|
5197
|
-
*/
|
|
5198
|
-
readonly badge: string;
|
|
5199
5225
|
/**
|
|
5200
5226
|
* The **`body`** read-only property of the specified in the `body` option of the A string.
|
|
5201
5227
|
*
|
|
@@ -6028,7 +6054,7 @@ declare var Permissions: {
|
|
|
6028
6054
|
};
|
|
6029
6055
|
|
|
6030
6056
|
/**
|
|
6031
|
-
* The **`ProgressEvent`** interface represents events
|
|
6057
|
+
* 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
6058
|
*
|
|
6033
6059
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
|
|
6034
6060
|
*/
|
|
@@ -6040,14 +6066,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
|
6040
6066
|
*/
|
|
6041
6067
|
readonly lengthComputable: boolean;
|
|
6042
6068
|
/**
|
|
6043
|
-
* The **`ProgressEvent.loaded`** read-only property is a
|
|
6069
|
+
* The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
|
|
6044
6070
|
*
|
|
6045
6071
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
|
|
6046
6072
|
*/
|
|
6047
6073
|
readonly loaded: number;
|
|
6048
6074
|
readonly target: T | null;
|
|
6049
6075
|
/**
|
|
6050
|
-
* The **`ProgressEvent.total`** read-only property is a
|
|
6076
|
+
* The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
|
|
6051
6077
|
*
|
|
6052
6078
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
|
|
6053
6079
|
*/
|
|
@@ -6948,6 +6974,7 @@ declare var ServiceWorkerContainer: {
|
|
|
6948
6974
|
|
|
6949
6975
|
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
6950
6976
|
"activate": ExtendableEvent;
|
|
6977
|
+
"cookiechange": ExtendableCookieChangeEvent;
|
|
6951
6978
|
"fetch": FetchEvent;
|
|
6952
6979
|
"install": ExtendableEvent;
|
|
6953
6980
|
"message": ExtendableMessageEvent;
|
|
@@ -6979,6 +7006,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
6979
7006
|
readonly cookieStore: CookieStore;
|
|
6980
7007
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
|
|
6981
7008
|
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
7009
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
|
|
7010
|
+
oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
|
|
6982
7011
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
|
|
6983
7012
|
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
|
|
6984
7013
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
|
|
@@ -7041,6 +7070,12 @@ interface ServiceWorkerRegistration extends EventTarget {
|
|
|
7041
7070
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
|
|
7042
7071
|
*/
|
|
7043
7072
|
readonly active: ServiceWorker | null;
|
|
7073
|
+
/**
|
|
7074
|
+
* 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.
|
|
7075
|
+
*
|
|
7076
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
|
|
7077
|
+
*/
|
|
7078
|
+
readonly cookies: CookieStoreManager;
|
|
7044
7079
|
/**
|
|
7045
7080
|
* The **`installing`** read-only property of the initially set to `null`.
|
|
7046
7081
|
*
|
|
@@ -11165,6 +11200,8 @@ declare var clients: Clients;
|
|
|
11165
11200
|
declare var cookieStore: CookieStore;
|
|
11166
11201
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
|
|
11167
11202
|
declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
11203
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
|
|
11204
|
+
declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
|
|
11168
11205
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
|
|
11169
11206
|
declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
|
|
11170
11207
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
|
package/ts5.5/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](): 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>)
|
|
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
|
*
|
|
@@ -5190,12 +5222,6 @@ interface NotificationEventMap {
|
|
|
5190
5222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
5191
5223
|
*/
|
|
5192
5224
|
interface Notification extends EventTarget {
|
|
5193
|
-
/**
|
|
5194
|
-
* The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
|
|
5195
|
-
*
|
|
5196
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
|
|
5197
|
-
*/
|
|
5198
|
-
readonly badge: string;
|
|
5199
5225
|
/**
|
|
5200
5226
|
* The **`body`** read-only property of the specified in the `body` option of the A string.
|
|
5201
5227
|
*
|
|
@@ -6028,7 +6054,7 @@ declare var Permissions: {
|
|
|
6028
6054
|
};
|
|
6029
6055
|
|
|
6030
6056
|
/**
|
|
6031
|
-
* The **`ProgressEvent`** interface represents events
|
|
6057
|
+
* 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
6058
|
*
|
|
6033
6059
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
|
|
6034
6060
|
*/
|
|
@@ -6040,14 +6066,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
|
6040
6066
|
*/
|
|
6041
6067
|
readonly lengthComputable: boolean;
|
|
6042
6068
|
/**
|
|
6043
|
-
* The **`ProgressEvent.loaded`** read-only property is a
|
|
6069
|
+
* The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
|
|
6044
6070
|
*
|
|
6045
6071
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
|
|
6046
6072
|
*/
|
|
6047
6073
|
readonly loaded: number;
|
|
6048
6074
|
readonly target: T | null;
|
|
6049
6075
|
/**
|
|
6050
|
-
* The **`ProgressEvent.total`** read-only property is a
|
|
6076
|
+
* The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
|
|
6051
6077
|
*
|
|
6052
6078
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
|
|
6053
6079
|
*/
|
|
@@ -6948,6 +6974,7 @@ declare var ServiceWorkerContainer: {
|
|
|
6948
6974
|
|
|
6949
6975
|
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
6950
6976
|
"activate": ExtendableEvent;
|
|
6977
|
+
"cookiechange": ExtendableCookieChangeEvent;
|
|
6951
6978
|
"fetch": FetchEvent;
|
|
6952
6979
|
"install": ExtendableEvent;
|
|
6953
6980
|
"message": ExtendableMessageEvent;
|
|
@@ -6979,6 +7006,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
6979
7006
|
readonly cookieStore: CookieStore;
|
|
6980
7007
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
|
|
6981
7008
|
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
7009
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
|
|
7010
|
+
oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
|
|
6982
7011
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
|
|
6983
7012
|
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
|
|
6984
7013
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
|
|
@@ -7041,6 +7070,12 @@ interface ServiceWorkerRegistration extends EventTarget {
|
|
|
7041
7070
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
|
|
7042
7071
|
*/
|
|
7043
7072
|
readonly active: ServiceWorker | null;
|
|
7073
|
+
/**
|
|
7074
|
+
* 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.
|
|
7075
|
+
*
|
|
7076
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
|
|
7077
|
+
*/
|
|
7078
|
+
readonly cookies: CookieStoreManager;
|
|
7044
7079
|
/**
|
|
7045
7080
|
* The **`installing`** read-only property of the initially set to `null`.
|
|
7046
7081
|
*
|
|
@@ -11165,6 +11200,8 @@ declare var clients: Clients;
|
|
|
11165
11200
|
declare var cookieStore: CookieStore;
|
|
11166
11201
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
|
|
11167
11202
|
declare var onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
|
|
11203
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
|
|
11204
|
+
declare var oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
|
|
11168
11205
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
|
|
11169
11206
|
declare var onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
|
|
11170
11207
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
|
package/ts5.6/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
|
}
|