@types/sharedworker 0.0.177 → 0.0.179
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 +2 -2
- package/index.d.ts +13 -27
- package/package.json +1 -1
- package/ts5.5/index.d.ts +13 -27
- package/ts5.6/index.d.ts +13 -27
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> The SharedWorker interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows, iframes or even workers. They implement an interface different than dedicated workers and have a different global scope, `SharedWorkerGlobalScope`.
|
|
4
4
|
|
|
5
|
-
From [MDN Web Docs: SharedWorker API](https://developer.mozilla.org/
|
|
5
|
+
From [MDN Web Docs: SharedWorker API](https://developer.mozilla.org/docs/Web/API/SharedWorker)
|
|
6
6
|
|
|
7
7
|
This package contains type definitions which will set up the global environment for your TypeScript project to match the runtime environment of a Web Worker. The APIs inside `@types/sharedworker` are [generated from](https://github.com/microsoft/TypeScript-DOM-lib-generator/) the specifications for JavaScript.
|
|
8
8
|
|
|
@@ -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.179 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.179.
|
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;
|
package/package.json
CHANGED
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;
|
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;
|