@types/sharedworker 0.0.152 → 0.0.154

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.152 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.152.
31
+ You can read what changed in version 0.0.154 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.154.
package/index.d.ts CHANGED
@@ -3567,8 +3567,8 @@ interface LockManager {
3567
3567
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3568
3568
  query(): Promise<LockManagerSnapshot>;
3569
3569
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3570
- request(name: string, callback: LockGrantedCallback): Promise<any>;
3571
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
3570
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
3571
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
3572
3572
  }
3573
3573
 
3574
3574
  declare var LockManager: {
@@ -8462,8 +8462,8 @@ interface Console {
8462
8462
 
8463
8463
  declare var console: Console;
8464
8464
 
8465
- interface LockGrantedCallback {
8466
- (lock: Lock | null): any;
8465
+ interface LockGrantedCallback<T> {
8466
+ (lock: Lock | null): T;
8467
8467
  }
8468
8468
 
8469
8469
  interface OnErrorEventHandlerNonNull {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.152",
3
+ "version": "0.0.154",
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
@@ -3567,8 +3567,8 @@ interface LockManager {
3567
3567
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3568
3568
  query(): Promise<LockManagerSnapshot>;
3569
3569
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3570
- request(name: string, callback: LockGrantedCallback): Promise<any>;
3571
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
3570
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
3571
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
3572
3572
  }
3573
3573
 
3574
3574
  declare var LockManager: {
@@ -8462,8 +8462,8 @@ interface Console {
8462
8462
 
8463
8463
  declare var console: Console;
8464
8464
 
8465
- interface LockGrantedCallback {
8466
- (lock: Lock | null): any;
8465
+ interface LockGrantedCallback<T> {
8466
+ (lock: Lock | null): T;
8467
8467
  }
8468
8468
 
8469
8469
  interface OnErrorEventHandlerNonNull {