@types/sharedworker 0.0.178 → 0.0.180

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.178 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.178.
31
+ You can read what changed in version 0.0.180 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.180.
package/index.d.ts CHANGED
@@ -3652,6 +3652,12 @@ interface FontFace {
3652
3652
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
3653
3653
  */
3654
3654
  unicodeRange: string;
3655
+ /**
3656
+ * The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
3657
+ *
3658
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
3659
+ */
3660
+ variationSettings: string;
3655
3661
  /**
3656
3662
  * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
3657
3663
  *
@@ -4710,8 +4716,8 @@ interface LockManager {
4710
4716
  *
4711
4717
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
4712
4718
  */
4713
- request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
4714
- request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
4719
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
4720
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
4715
4721
  }
4716
4722
 
4717
4723
  declare var LockManager: {
@@ -4923,35 +4929,15 @@ interface NavigatorConcurrentHardware {
4923
4929
  }
4924
4930
 
4925
4931
  interface NavigatorID {
4926
- /**
4927
- * @deprecated
4928
- *
4929
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
4930
- */
4932
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
4931
4933
  readonly appCodeName: string;
4932
- /**
4933
- * @deprecated
4934
- *
4935
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
4936
- */
4934
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
4937
4935
  readonly appName: string;
4938
- /**
4939
- * @deprecated
4940
- *
4941
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
4942
- */
4936
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
4943
4937
  readonly appVersion: string;
4944
- /**
4945
- * @deprecated
4946
- *
4947
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
4948
- */
4938
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
4949
4939
  readonly platform: string;
4950
- /**
4951
- * @deprecated
4952
- *
4953
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
4954
- */
4940
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
4955
4941
  readonly product: string;
4956
4942
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
4957
4943
  readonly userAgent: string;
@@ -5996,7 +5982,7 @@ interface ReadableByteStreamController {
5996
5982
  */
5997
5983
  close(): void;
5998
5984
  /**
5999
- * 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).
5985
+ * 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).
6000
5986
  *
6001
5987
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
6002
5988
  */
@@ -7412,7 +7398,7 @@ interface URLPattern {
7412
7398
  */
7413
7399
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7414
7400
  /**
7415
- * 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.
7401
+ * 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.
7416
7402
  *
7417
7403
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7418
7404
  */
@@ -10032,7 +10018,7 @@ interface WebSocket extends EventTarget {
10032
10018
  *
10033
10019
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
10034
10020
  */
10035
- readonly readyState: number;
10021
+ readonly readyState: 0 | 1 | 2 | 3;
10036
10022
  /**
10037
10023
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
10038
10024
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.178",
3
+ "version": "0.0.180",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -3652,6 +3652,12 @@ interface FontFace {
3652
3652
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
3653
3653
  */
3654
3654
  unicodeRange: string;
3655
+ /**
3656
+ * The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
3657
+ *
3658
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
3659
+ */
3660
+ variationSettings: string;
3655
3661
  /**
3656
3662
  * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
3657
3663
  *
@@ -4710,8 +4716,8 @@ interface LockManager {
4710
4716
  *
4711
4717
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
4712
4718
  */
4713
- request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
4714
- request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
4719
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
4720
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
4715
4721
  }
4716
4722
 
4717
4723
  declare var LockManager: {
@@ -4923,35 +4929,15 @@ interface NavigatorConcurrentHardware {
4923
4929
  }
4924
4930
 
4925
4931
  interface NavigatorID {
4926
- /**
4927
- * @deprecated
4928
- *
4929
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
4930
- */
4932
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
4931
4933
  readonly appCodeName: string;
4932
- /**
4933
- * @deprecated
4934
- *
4935
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
4936
- */
4934
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
4937
4935
  readonly appName: string;
4938
- /**
4939
- * @deprecated
4940
- *
4941
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
4942
- */
4936
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
4943
4937
  readonly appVersion: string;
4944
- /**
4945
- * @deprecated
4946
- *
4947
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
4948
- */
4938
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
4949
4939
  readonly platform: string;
4950
- /**
4951
- * @deprecated
4952
- *
4953
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
4954
- */
4940
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
4955
4941
  readonly product: string;
4956
4942
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
4957
4943
  readonly userAgent: string;
@@ -5996,7 +5982,7 @@ interface ReadableByteStreamController {
5996
5982
  */
5997
5983
  close(): void;
5998
5984
  /**
5999
- * 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).
5985
+ * 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).
6000
5986
  *
6001
5987
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
6002
5988
  */
@@ -7412,7 +7398,7 @@ interface URLPattern {
7412
7398
  */
7413
7399
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7414
7400
  /**
7415
- * 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.
7401
+ * 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.
7416
7402
  *
7417
7403
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7418
7404
  */
@@ -10032,7 +10018,7 @@ interface WebSocket extends EventTarget {
10032
10018
  *
10033
10019
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
10034
10020
  */
10035
- readonly readyState: number;
10021
+ readonly readyState: 0 | 1 | 2 | 3;
10036
10022
  /**
10037
10023
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
10038
10024
  *
package/ts5.6/index.d.ts CHANGED
@@ -3652,6 +3652,12 @@ interface FontFace {
3652
3652
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
3653
3653
  */
3654
3654
  unicodeRange: string;
3655
+ /**
3656
+ * The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
3657
+ *
3658
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
3659
+ */
3660
+ variationSettings: string;
3655
3661
  /**
3656
3662
  * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
3657
3663
  *
@@ -4710,8 +4716,8 @@ interface LockManager {
4710
4716
  *
4711
4717
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
4712
4718
  */
4713
- request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
4714
- request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
4719
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
4720
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
4715
4721
  }
4716
4722
 
4717
4723
  declare var LockManager: {
@@ -4923,35 +4929,15 @@ interface NavigatorConcurrentHardware {
4923
4929
  }
4924
4930
 
4925
4931
  interface NavigatorID {
4926
- /**
4927
- * @deprecated
4928
- *
4929
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
4930
- */
4932
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
4931
4933
  readonly appCodeName: string;
4932
- /**
4933
- * @deprecated
4934
- *
4935
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
4936
- */
4934
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
4937
4935
  readonly appName: string;
4938
- /**
4939
- * @deprecated
4940
- *
4941
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
4942
- */
4936
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
4943
4937
  readonly appVersion: string;
4944
- /**
4945
- * @deprecated
4946
- *
4947
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
4948
- */
4938
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
4949
4939
  readonly platform: string;
4950
- /**
4951
- * @deprecated
4952
- *
4953
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
4954
- */
4940
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
4955
4941
  readonly product: string;
4956
4942
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
4957
4943
  readonly userAgent: string;
@@ -5996,7 +5982,7 @@ interface ReadableByteStreamController {
5996
5982
  */
5997
5983
  close(): void;
5998
5984
  /**
5999
- * 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).
5985
+ * 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).
6000
5986
  *
6001
5987
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
6002
5988
  */
@@ -7412,7 +7398,7 @@ interface URLPattern {
7412
7398
  */
7413
7399
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7414
7400
  /**
7415
- * 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.
7401
+ * 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.
7416
7402
  *
7417
7403
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7418
7404
  */
@@ -10032,7 +10018,7 @@ interface WebSocket extends EventTarget {
10032
10018
  *
10033
10019
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
10034
10020
  */
10035
- readonly readyState: number;
10021
+ readonly readyState: 0 | 1 | 2 | 3;
10036
10022
  /**
10037
10023
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
10038
10024
  *