@types/serviceworker 0.0.150 → 0.0.152

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.150 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.150.
31
+ You can read what changed in version 0.0.152 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.152.
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;
@@ -6413,7 +6399,7 @@ interface ReadableByteStreamController {
6413
6399
  */
6414
6400
  close(): void;
6415
6401
  /**
6416
- * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
6402
+ * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
6417
6403
  *
6418
6404
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
6419
6405
  */
@@ -7869,7 +7855,7 @@ interface URLPattern {
7869
7855
  */
7870
7856
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7871
7857
  /**
7872
- * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7858
+ * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7873
7859
  *
7874
7860
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7875
7861
  */
@@ -10489,7 +10475,7 @@ interface WebSocket extends EventTarget {
10489
10475
  *
10490
10476
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
10491
10477
  */
10492
- readonly readyState: number;
10478
+ readonly readyState: 0 | 1 | 2 | 3;
10493
10479
  /**
10494
10480
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
10495
10481
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.150",
3
+ "version": "0.0.152",
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
@@ -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;
@@ -6413,7 +6399,7 @@ interface ReadableByteStreamController {
6413
6399
  */
6414
6400
  close(): void;
6415
6401
  /**
6416
- * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
6402
+ * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
6417
6403
  *
6418
6404
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
6419
6405
  */
@@ -7869,7 +7855,7 @@ interface URLPattern {
7869
7855
  */
7870
7856
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7871
7857
  /**
7872
- * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7858
+ * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7873
7859
  *
7874
7860
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7875
7861
  */
@@ -10489,7 +10475,7 @@ interface WebSocket extends EventTarget {
10489
10475
  *
10490
10476
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
10491
10477
  */
10492
- readonly readyState: number;
10478
+ readonly readyState: 0 | 1 | 2 | 3;
10493
10479
  /**
10494
10480
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
10495
10481
  *
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;
@@ -6413,7 +6399,7 @@ interface ReadableByteStreamController {
6413
6399
  */
6414
6400
  close(): void;
6415
6401
  /**
6416
- * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
6402
+ * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
6417
6403
  *
6418
6404
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
6419
6405
  */
@@ -7869,7 +7855,7 @@ interface URLPattern {
7869
7855
  */
7870
7856
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7871
7857
  /**
7872
- * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7858
+ * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7873
7859
  *
7874
7860
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7875
7861
  */
@@ -10489,7 +10475,7 @@ interface WebSocket extends EventTarget {
10489
10475
  *
10490
10476
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
10491
10477
  */
10492
- readonly readyState: number;
10478
+ readonly readyState: 0 | 1 | 2 | 3;
10493
10479
  /**
10494
10480
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
10495
10481
  *