@types/serviceworker 0.0.150 → 0.0.151
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 +14 -28
- package/package.json +1 -1
- package/ts5.5/index.d.ts +14 -28
- package/ts5.6/index.d.ts +14 -28
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.151 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.151.
|
package/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ interface PromiseRejectionEventInit extends EventInit {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
interface PushEventInit extends ExtendableEventInit {
|
|
501
|
-
data?: PushMessageDataInit;
|
|
501
|
+
data?: PushMessageDataInit | null;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
@@ -3969,6 +3969,12 @@ interface FontFace {
|
|
|
3969
3969
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
|
|
3970
3970
|
*/
|
|
3971
3971
|
unicodeRange: string;
|
|
3972
|
+
/**
|
|
3973
|
+
* The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
|
|
3974
|
+
*
|
|
3975
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
|
|
3976
|
+
*/
|
|
3977
|
+
variationSettings: string;
|
|
3972
3978
|
/**
|
|
3973
3979
|
* The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
|
|
3974
3980
|
*
|
|
@@ -5027,8 +5033,8 @@ interface LockManager {
|
|
|
5027
5033
|
*
|
|
5028
5034
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
|
|
5029
5035
|
*/
|
|
5030
|
-
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T
|
|
5031
|
-
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T
|
|
5036
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
5037
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
5032
5038
|
}
|
|
5033
5039
|
|
|
5034
5040
|
declare var LockManager: {
|
|
@@ -5240,35 +5246,15 @@ interface NavigatorConcurrentHardware {
|
|
|
5240
5246
|
}
|
|
5241
5247
|
|
|
5242
5248
|
interface NavigatorID {
|
|
5243
|
-
/**
|
|
5244
|
-
* @deprecated
|
|
5245
|
-
*
|
|
5246
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
|
|
5247
|
-
*/
|
|
5249
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
5248
5250
|
readonly appCodeName: string;
|
|
5249
|
-
/**
|
|
5250
|
-
* @deprecated
|
|
5251
|
-
*
|
|
5252
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
|
|
5253
|
-
*/
|
|
5251
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
|
|
5254
5252
|
readonly appName: string;
|
|
5255
|
-
/**
|
|
5256
|
-
* @deprecated
|
|
5257
|
-
*
|
|
5258
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
|
|
5259
|
-
*/
|
|
5253
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
|
|
5260
5254
|
readonly appVersion: string;
|
|
5261
|
-
/**
|
|
5262
|
-
* @deprecated
|
|
5263
|
-
*
|
|
5264
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
|
|
5265
|
-
*/
|
|
5255
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
|
|
5266
5256
|
readonly platform: string;
|
|
5267
|
-
/**
|
|
5268
|
-
* @deprecated
|
|
5269
|
-
*
|
|
5270
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
|
|
5271
|
-
*/
|
|
5257
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
|
|
5272
5258
|
readonly product: string;
|
|
5273
5259
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
|
|
5274
5260
|
readonly userAgent: string;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ interface PromiseRejectionEventInit extends EventInit {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
interface PushEventInit extends ExtendableEventInit {
|
|
501
|
-
data?: PushMessageDataInit;
|
|
501
|
+
data?: PushMessageDataInit | null;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
@@ -3969,6 +3969,12 @@ interface FontFace {
|
|
|
3969
3969
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
|
|
3970
3970
|
*/
|
|
3971
3971
|
unicodeRange: string;
|
|
3972
|
+
/**
|
|
3973
|
+
* The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
|
|
3974
|
+
*
|
|
3975
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
|
|
3976
|
+
*/
|
|
3977
|
+
variationSettings: string;
|
|
3972
3978
|
/**
|
|
3973
3979
|
* The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
|
|
3974
3980
|
*
|
|
@@ -5027,8 +5033,8 @@ interface LockManager {
|
|
|
5027
5033
|
*
|
|
5028
5034
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
|
|
5029
5035
|
*/
|
|
5030
|
-
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T
|
|
5031
|
-
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T
|
|
5036
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
5037
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
5032
5038
|
}
|
|
5033
5039
|
|
|
5034
5040
|
declare var LockManager: {
|
|
@@ -5240,35 +5246,15 @@ interface NavigatorConcurrentHardware {
|
|
|
5240
5246
|
}
|
|
5241
5247
|
|
|
5242
5248
|
interface NavigatorID {
|
|
5243
|
-
/**
|
|
5244
|
-
* @deprecated
|
|
5245
|
-
*
|
|
5246
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
|
|
5247
|
-
*/
|
|
5249
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
5248
5250
|
readonly appCodeName: string;
|
|
5249
|
-
/**
|
|
5250
|
-
* @deprecated
|
|
5251
|
-
*
|
|
5252
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
|
|
5253
|
-
*/
|
|
5251
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
|
|
5254
5252
|
readonly appName: string;
|
|
5255
|
-
/**
|
|
5256
|
-
* @deprecated
|
|
5257
|
-
*
|
|
5258
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
|
|
5259
|
-
*/
|
|
5253
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
|
|
5260
5254
|
readonly appVersion: string;
|
|
5261
|
-
/**
|
|
5262
|
-
* @deprecated
|
|
5263
|
-
*
|
|
5264
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
|
|
5265
|
-
*/
|
|
5255
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
|
|
5266
5256
|
readonly platform: string;
|
|
5267
|
-
/**
|
|
5268
|
-
* @deprecated
|
|
5269
|
-
*
|
|
5270
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
|
|
5271
|
-
*/
|
|
5257
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
|
|
5272
5258
|
readonly product: string;
|
|
5273
5259
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
|
|
5274
5260
|
readonly userAgent: string;
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ interface PromiseRejectionEventInit extends EventInit {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
interface PushEventInit extends ExtendableEventInit {
|
|
501
|
-
data?: PushMessageDataInit;
|
|
501
|
+
data?: PushMessageDataInit | null;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
@@ -3969,6 +3969,12 @@ interface FontFace {
|
|
|
3969
3969
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
|
|
3970
3970
|
*/
|
|
3971
3971
|
unicodeRange: string;
|
|
3972
|
+
/**
|
|
3973
|
+
* The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
|
|
3974
|
+
*
|
|
3975
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
|
|
3976
|
+
*/
|
|
3977
|
+
variationSettings: string;
|
|
3972
3978
|
/**
|
|
3973
3979
|
* The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
|
|
3974
3980
|
*
|
|
@@ -5027,8 +5033,8 @@ interface LockManager {
|
|
|
5027
5033
|
*
|
|
5028
5034
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
|
|
5029
5035
|
*/
|
|
5030
|
-
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T
|
|
5031
|
-
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T
|
|
5036
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
5037
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
5032
5038
|
}
|
|
5033
5039
|
|
|
5034
5040
|
declare var LockManager: {
|
|
@@ -5240,35 +5246,15 @@ interface NavigatorConcurrentHardware {
|
|
|
5240
5246
|
}
|
|
5241
5247
|
|
|
5242
5248
|
interface NavigatorID {
|
|
5243
|
-
/**
|
|
5244
|
-
* @deprecated
|
|
5245
|
-
*
|
|
5246
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
|
|
5247
|
-
*/
|
|
5249
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
5248
5250
|
readonly appCodeName: string;
|
|
5249
|
-
/**
|
|
5250
|
-
* @deprecated
|
|
5251
|
-
*
|
|
5252
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
|
|
5253
|
-
*/
|
|
5251
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
|
|
5254
5252
|
readonly appName: string;
|
|
5255
|
-
/**
|
|
5256
|
-
* @deprecated
|
|
5257
|
-
*
|
|
5258
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
|
|
5259
|
-
*/
|
|
5253
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
|
|
5260
5254
|
readonly appVersion: string;
|
|
5261
|
-
/**
|
|
5262
|
-
* @deprecated
|
|
5263
|
-
*
|
|
5264
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
|
|
5265
|
-
*/
|
|
5255
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
|
|
5266
5256
|
readonly platform: string;
|
|
5267
|
-
/**
|
|
5268
|
-
* @deprecated
|
|
5269
|
-
*
|
|
5270
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
|
|
5271
|
-
*/
|
|
5257
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
|
|
5272
5258
|
readonly product: string;
|
|
5273
5259
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
|
|
5274
5260
|
readonly userAgent: string;
|