@types/webworker 0.0.23 → 0.0.25

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  > The Worker interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator. Creating a worker is done by calling the `Worker("path/to/worker/script")` constructor.
4
4
 
5
- From [MDN Web Docs: Worker API](https://developer.mozilla.org/en-US/docs/Web/API/Worker)
5
+ From [MDN Web Docs: Worker API](https://developer.mozilla.org/docs/Web/API/Worker)
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/webworker` are [generated from](https://github.com/microsoft/TypeScript-DOM-lib-generator/) the specifications for JavaScript.
8
8
 
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
45
45
 
46
46
  ## Deploy Metadata
47
47
 
48
- You can read what changed in version 0.0.23 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.23.
48
+ You can read what changed in version 0.0.25 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.25.
package/index.d.ts CHANGED
@@ -620,7 +620,7 @@ interface PromiseRejectionEventInit extends EventInit {
620
620
  }
621
621
 
622
622
  interface PushEventInit extends ExtendableEventInit {
623
- data?: PushMessageDataInit;
623
+ data?: PushMessageDataInit | null;
624
624
  }
625
625
 
626
626
  interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
@@ -4661,6 +4661,12 @@ interface FontFace {
4661
4661
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
4662
4662
  */
4663
4663
  unicodeRange: string;
4664
+ /**
4665
+ * The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
4666
+ *
4667
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
4668
+ */
4669
+ variationSettings: string;
4664
4670
  /**
4665
4671
  * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
4666
4672
  *
@@ -5163,13 +5169,13 @@ interface IDBIndex {
5163
5169
  *
5164
5170
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
5165
5171
  */
5166
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5172
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5167
5173
  /**
5168
5174
  * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.
5169
5175
  *
5170
5176
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
5171
5177
  */
5172
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5178
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5173
5179
  /**
5174
5180
  * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an IDBKeyRange.
5175
5181
  *
@@ -5345,13 +5351,13 @@ interface IDBObjectStore {
5345
5351
  *
5346
5352
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
5347
5353
  */
5348
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5354
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5349
5355
  /**
5350
5356
  * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
5351
5357
  *
5352
5358
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
5353
5359
  */
5354
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5360
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5355
5361
  /**
5356
5362
  * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
5357
5363
  *
@@ -5856,8 +5862,8 @@ interface LockManager {
5856
5862
  *
5857
5863
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
5858
5864
  */
5859
- request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
5860
- request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
5865
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
5866
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
5861
5867
  }
5862
5868
 
5863
5869
  declare var LockManager: {
@@ -6101,35 +6107,15 @@ interface NavigatorConcurrentHardware {
6101
6107
  }
6102
6108
 
6103
6109
  interface NavigatorID {
6104
- /**
6105
- * @deprecated
6106
- *
6107
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
6108
- */
6110
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
6109
6111
  readonly appCodeName: string;
6110
- /**
6111
- * @deprecated
6112
- *
6113
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
6114
- */
6112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
6115
6113
  readonly appName: string;
6116
- /**
6117
- * @deprecated
6118
- *
6119
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
6120
- */
6114
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
6121
6115
  readonly appVersion: string;
6122
- /**
6123
- * @deprecated
6124
- *
6125
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
6126
- */
6116
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
6127
6117
  readonly platform: string;
6128
- /**
6129
- * @deprecated
6130
- *
6131
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
6132
- */
6118
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
6133
6119
  readonly product: string;
6134
6120
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
6135
6121
  readonly userAgent: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -620,7 +620,7 @@ interface PromiseRejectionEventInit extends EventInit {
620
620
  }
621
621
 
622
622
  interface PushEventInit extends ExtendableEventInit {
623
- data?: PushMessageDataInit;
623
+ data?: PushMessageDataInit | null;
624
624
  }
625
625
 
626
626
  interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
@@ -4661,6 +4661,12 @@ interface FontFace {
4661
4661
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
4662
4662
  */
4663
4663
  unicodeRange: string;
4664
+ /**
4665
+ * The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
4666
+ *
4667
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
4668
+ */
4669
+ variationSettings: string;
4664
4670
  /**
4665
4671
  * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
4666
4672
  *
@@ -5163,13 +5169,13 @@ interface IDBIndex {
5163
5169
  *
5164
5170
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
5165
5171
  */
5166
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5172
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5167
5173
  /**
5168
5174
  * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.
5169
5175
  *
5170
5176
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
5171
5177
  */
5172
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5178
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5173
5179
  /**
5174
5180
  * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an IDBKeyRange.
5175
5181
  *
@@ -5345,13 +5351,13 @@ interface IDBObjectStore {
5345
5351
  *
5346
5352
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
5347
5353
  */
5348
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5354
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5349
5355
  /**
5350
5356
  * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
5351
5357
  *
5352
5358
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
5353
5359
  */
5354
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5360
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5355
5361
  /**
5356
5362
  * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
5357
5363
  *
@@ -5856,8 +5862,8 @@ interface LockManager {
5856
5862
  *
5857
5863
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
5858
5864
  */
5859
- request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
5860
- request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
5865
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
5866
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
5861
5867
  }
5862
5868
 
5863
5869
  declare var LockManager: {
@@ -6101,35 +6107,15 @@ interface NavigatorConcurrentHardware {
6101
6107
  }
6102
6108
 
6103
6109
  interface NavigatorID {
6104
- /**
6105
- * @deprecated
6106
- *
6107
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
6108
- */
6110
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
6109
6111
  readonly appCodeName: string;
6110
- /**
6111
- * @deprecated
6112
- *
6113
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
6114
- */
6112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
6115
6113
  readonly appName: string;
6116
- /**
6117
- * @deprecated
6118
- *
6119
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
6120
- */
6114
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
6121
6115
  readonly appVersion: string;
6122
- /**
6123
- * @deprecated
6124
- *
6125
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
6126
- */
6116
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
6127
6117
  readonly platform: string;
6128
- /**
6129
- * @deprecated
6130
- *
6131
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
6132
- */
6118
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
6133
6119
  readonly product: string;
6134
6120
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
6135
6121
  readonly userAgent: string;
package/ts5.6/index.d.ts CHANGED
@@ -620,7 +620,7 @@ interface PromiseRejectionEventInit extends EventInit {
620
620
  }
621
621
 
622
622
  interface PushEventInit extends ExtendableEventInit {
623
- data?: PushMessageDataInit;
623
+ data?: PushMessageDataInit | null;
624
624
  }
625
625
 
626
626
  interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
@@ -4661,6 +4661,12 @@ interface FontFace {
4661
4661
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
4662
4662
  */
4663
4663
  unicodeRange: string;
4664
+ /**
4665
+ * The **`variationSettings`** property of the FontFace interface retrieves or sets low-level OpenType or TrueType font variations.
4666
+ *
4667
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variationSettings)
4668
+ */
4669
+ variationSettings: string;
4664
4670
  /**
4665
4671
  * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.
4666
4672
  *
@@ -5163,13 +5169,13 @@ interface IDBIndex {
5163
5169
  *
5164
5170
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
5165
5171
  */
5166
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5172
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5167
5173
  /**
5168
5174
  * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.
5169
5175
  *
5170
5176
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
5171
5177
  */
5172
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5178
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5173
5179
  /**
5174
5180
  * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an IDBKeyRange.
5175
5181
  *
@@ -5345,13 +5351,13 @@ interface IDBObjectStore {
5345
5351
  *
5346
5352
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
5347
5353
  */
5348
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5354
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
5349
5355
  /**
5350
5356
  * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
5351
5357
  *
5352
5358
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
5353
5359
  */
5354
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5360
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
5355
5361
  /**
5356
5362
  * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
5357
5363
  *
@@ -5856,8 +5862,8 @@ interface LockManager {
5856
5862
  *
5857
5863
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
5858
5864
  */
5859
- request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
5860
- request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
5865
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
5866
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
5861
5867
  }
5862
5868
 
5863
5869
  declare var LockManager: {
@@ -6101,35 +6107,15 @@ interface NavigatorConcurrentHardware {
6101
6107
  }
6102
6108
 
6103
6109
  interface NavigatorID {
6104
- /**
6105
- * @deprecated
6106
- *
6107
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
6108
- */
6110
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
6109
6111
  readonly appCodeName: string;
6110
- /**
6111
- * @deprecated
6112
- *
6113
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
6114
- */
6112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) */
6115
6113
  readonly appName: string;
6116
- /**
6117
- * @deprecated
6118
- *
6119
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
6120
- */
6114
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) */
6121
6115
  readonly appVersion: string;
6122
- /**
6123
- * @deprecated
6124
- *
6125
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
6126
- */
6116
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) */
6127
6117
  readonly platform: string;
6128
- /**
6129
- * @deprecated
6130
- *
6131
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
6132
- */
6118
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) */
6133
6119
  readonly product: string;
6134
6120
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
6135
6121
  readonly userAgent: string;