@types/serviceworker 0.0.125 → 0.0.127

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.125 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.125.
31
+ You can read what changed in version 0.0.127 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.127.
package/index.d.ts CHANGED
@@ -3748,8 +3748,8 @@ interface LockManager {
3748
3748
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3749
3749
  query(): Promise<LockManagerSnapshot>;
3750
3750
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3751
- request(name: string, callback: LockGrantedCallback): Promise<any>;
3752
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
3751
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
3752
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
3753
3753
  }
3754
3754
 
3755
3755
  declare var LockManager: {
@@ -8524,8 +8524,8 @@ interface Console {
8524
8524
 
8525
8525
  declare var console: Console;
8526
8526
 
8527
- interface LockGrantedCallback {
8528
- (lock: Lock | null): any;
8527
+ interface LockGrantedCallback<T> {
8528
+ (lock: Lock | null): T;
8529
8529
  }
8530
8530
 
8531
8531
  interface OnErrorEventHandlerNonNull {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.125",
3
+ "version": "0.0.127",
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
@@ -3748,8 +3748,8 @@ interface LockManager {
3748
3748
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3749
3749
  query(): Promise<LockManagerSnapshot>;
3750
3750
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3751
- request(name: string, callback: LockGrantedCallback): Promise<any>;
3752
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
3751
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
3752
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
3753
3753
  }
3754
3754
 
3755
3755
  declare var LockManager: {
@@ -8524,8 +8524,8 @@ interface Console {
8524
8524
 
8525
8525
  declare var console: Console;
8526
8526
 
8527
- interface LockGrantedCallback {
8528
- (lock: Lock | null): any;
8527
+ interface LockGrantedCallback<T> {
8528
+ (lock: Lock | null): T;
8529
8529
  }
8530
8530
 
8531
8531
  interface OnErrorEventHandlerNonNull {