File tree 13 files changed +101
-48
lines changed
13 files changed +101
-48
lines changed Original file line number Diff line number Diff line change @@ -15697,8 +15697,8 @@ interface LockManager {
15697
15697
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
15698
15698
query(): Promise<LockManagerSnapshot>;
15699
15699
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
15700
- request(name: string, callback: LockGrantedCallback): Promise<any >;
15701
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any >;
15700
+ request<T> (name: string, callback: LockGrantedCallback<T> ): Promise<T >;
15701
+ request<T> (name: string, options: LockOptions, callback: LockGrantedCallback<T> ): Promise<T >;
15702
15702
}
15703
15703
15704
15704
declare var LockManager: {
@@ -28445,8 +28445,8 @@ interface IntersectionObserverCallback {
28445
28445
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
28446
28446
}
28447
28447
28448
- interface LockGrantedCallback {
28449
- (lock: Lock | null): any ;
28448
+ interface LockGrantedCallback<T> {
28449
+ (lock: Lock | null): T ;
28450
28450
}
28451
28451
28452
28452
interface MediaSessionActionHandler {
Original file line number Diff line number Diff line change @@ -3746,8 +3746,8 @@ interface LockManager {
3746
3746
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3747
3747
query ( ) : Promise < LockManagerSnapshot > ;
3748
3748
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3749
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
3750
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
3749
+ request < T > ( name : string , callback : LockGrantedCallback < T > ) : Promise < T > ;
3750
+ request < T > ( name : string , options : LockOptions , callback : LockGrantedCallback < T > ) : Promise < T > ;
3751
3751
}
3752
3752
3753
3753
declare var LockManager : {
@@ -8522,8 +8522,8 @@ interface Console {
8522
8522
8523
8523
declare var console : Console ;
8524
8524
8525
- interface LockGrantedCallback {
8526
- ( lock : Lock | null ) : any ;
8525
+ interface LockGrantedCallback < T > {
8526
+ ( lock : Lock | null ) : T ;
8527
8527
}
8528
8528
8529
8529
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -3565,8 +3565,8 @@ interface LockManager {
3565
3565
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3566
3566
query ( ) : Promise < LockManagerSnapshot > ;
3567
3567
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3568
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
3569
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
3568
+ request < T > ( name : string , callback : LockGrantedCallback < T > ) : Promise < T > ;
3569
+ request < T > ( name : string , options : LockOptions , callback : LockGrantedCallback < T > ) : Promise < T > ;
3570
3570
}
3571
3571
3572
3572
declare var LockManager : {
@@ -8460,8 +8460,8 @@ interface Console {
8460
8460
8461
8461
declare var console : Console ;
8462
8462
8463
- interface LockGrantedCallback {
8464
- ( lock : Lock | null ) : any ;
8463
+ interface LockGrantedCallback < T > {
8464
+ ( lock : Lock | null ) : T ;
8465
8465
}
8466
8466
8467
8467
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -15677,8 +15677,8 @@ interface LockManager {
15677
15677
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
15678
15678
query(): Promise<LockManagerSnapshot>;
15679
15679
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
15680
- request(name: string, callback: LockGrantedCallback): Promise<any >;
15681
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any >;
15680
+ request<T> (name: string, callback: LockGrantedCallback<T> ): Promise<T >;
15681
+ request<T> (name: string, options: LockOptions, callback: LockGrantedCallback<T> ): Promise<T >;
15682
15682
}
15683
15683
15684
15684
declare var LockManager: {
@@ -28423,8 +28423,8 @@ interface IntersectionObserverCallback {
28423
28423
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
28424
28424
}
28425
28425
28426
- interface LockGrantedCallback {
28427
- (lock: Lock | null): any ;
28426
+ interface LockGrantedCallback<T> {
28427
+ (lock: Lock | null): T ;
28428
28428
}
28429
28429
28430
28430
interface MediaSessionActionHandler {
Original file line number Diff line number Diff line change @@ -3746,8 +3746,8 @@ interface LockManager {
3746
3746
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3747
3747
query ( ) : Promise < LockManagerSnapshot > ;
3748
3748
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3749
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
3750
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
3749
+ request < T > ( name : string , callback : LockGrantedCallback < T > ) : Promise < T > ;
3750
+ request < T > ( name : string , options : LockOptions , callback : LockGrantedCallback < T > ) : Promise < T > ;
3751
3751
}
3752
3752
3753
3753
declare var LockManager : {
@@ -8522,8 +8522,8 @@ interface Console {
8522
8522
8523
8523
declare var console : Console ;
8524
8524
8525
- interface LockGrantedCallback {
8526
- ( lock : Lock | null ) : any ;
8525
+ interface LockGrantedCallback < T > {
8526
+ ( lock : Lock | null ) : T ;
8527
8527
}
8528
8528
8529
8529
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -3565,8 +3565,8 @@ interface LockManager {
3565
3565
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3566
3566
query ( ) : Promise < LockManagerSnapshot > ;
3567
3567
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3568
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
3569
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
3568
+ request < T > ( name : string , callback : LockGrantedCallback < T > ) : Promise < T > ;
3569
+ request < T > ( name : string , options : LockOptions , callback : LockGrantedCallback < T > ) : Promise < T > ;
3570
3570
}
3571
3571
3572
3572
declare var LockManager : {
@@ -8460,8 +8460,8 @@ interface Console {
8460
8460
8461
8461
declare var console : Console ;
8462
8462
8463
- interface LockGrantedCallback {
8464
- ( lock : Lock | null ) : any ;
8463
+ interface LockGrantedCallback < T > {
8464
+ ( lock : Lock | null ) : T ;
8465
8465
}
8466
8466
8467
8467
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -4300,8 +4300,8 @@ interface LockManager {
4300
4300
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
4301
4301
query(): Promise<LockManagerSnapshot>;
4302
4302
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
4303
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
4304
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
4303
+ request<T> (name: string, callback: LockGrantedCallback<T> ): Promise<T >;
4304
+ request<T> (name: string, options: LockOptions, callback: LockGrantedCallback<T> ): Promise<T >;
4305
4305
}
4306
4306
4307
4307
declare var LockManager: {
@@ -9627,8 +9627,8 @@ interface FrameRequestCallback {
9627
9627
(time: DOMHighResTimeStamp): void;
9628
9628
}
9629
9629
9630
- interface LockGrantedCallback {
9631
- ( lock : Lock | null ) : any ;
9630
+ interface LockGrantedCallback<T> {
9631
+ (lock: Lock | null): T ;
9632
9632
}
9633
9633
9634
9634
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -15697,8 +15697,8 @@ interface LockManager {
15697
15697
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
15698
15698
query(): Promise<LockManagerSnapshot>;
15699
15699
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
15700
- request(name: string, callback: LockGrantedCallback): Promise<any >;
15701
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any >;
15700
+ request<T> (name: string, callback: LockGrantedCallback<T> ): Promise<T >;
15701
+ request<T> (name: string, options: LockOptions, callback: LockGrantedCallback<T> ): Promise<T >;
15702
15702
}
15703
15703
15704
15704
declare var LockManager: {
@@ -28445,8 +28445,8 @@ interface IntersectionObserverCallback {
28445
28445
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
28446
28446
}
28447
28447
28448
- interface LockGrantedCallback {
28449
- (lock: Lock | null): any ;
28448
+ interface LockGrantedCallback<T> {
28449
+ (lock: Lock | null): T ;
28450
28450
}
28451
28451
28452
28452
interface MediaSessionActionHandler {
Original file line number Diff line number Diff line change @@ -3746,8 +3746,8 @@ interface LockManager {
3746
3746
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3747
3747
query ( ) : Promise < LockManagerSnapshot > ;
3748
3748
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3749
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
3750
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
3749
+ request < T > ( name : string , callback : LockGrantedCallback < T > ) : Promise < T > ;
3750
+ request < T > ( name : string , options : LockOptions , callback : LockGrantedCallback < T > ) : Promise < T > ;
3751
3751
}
3752
3752
3753
3753
declare var LockManager : {
@@ -8522,8 +8522,8 @@ interface Console {
8522
8522
8523
8523
declare var console : Console ;
8524
8524
8525
- interface LockGrantedCallback {
8526
- ( lock : Lock | null ) : any ;
8525
+ interface LockGrantedCallback < T > {
8526
+ ( lock : Lock | null ) : T ;
8527
8527
}
8528
8528
8529
8529
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -3565,8 +3565,8 @@ interface LockManager {
3565
3565
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
3566
3566
query ( ) : Promise < LockManagerSnapshot > ;
3567
3567
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
3568
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
3569
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
3568
+ request < T > ( name : string , callback : LockGrantedCallback < T > ) : Promise < T > ;
3569
+ request < T > ( name : string , options : LockOptions , callback : LockGrantedCallback < T > ) : Promise < T > ;
3570
3570
}
3571
3571
3572
3572
declare var LockManager : {
@@ -8460,8 +8460,8 @@ interface Console {
8460
8460
8461
8461
declare var console : Console ;
8462
8462
8463
- interface LockGrantedCallback {
8464
- ( lock : Lock | null ) : any ;
8463
+ interface LockGrantedCallback < T > {
8464
+ ( lock : Lock | null ) : T ;
8465
8465
}
8466
8466
8467
8467
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -4300,8 +4300,8 @@ interface LockManager {
4300
4300
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
4301
4301
query(): Promise<LockManagerSnapshot>;
4302
4302
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
4303
- request ( name : string , callback : LockGrantedCallback ) : Promise < any > ;
4304
- request ( name : string , options : LockOptions , callback : LockGrantedCallback ) : Promise < any > ;
4303
+ request<T> (name: string, callback: LockGrantedCallback<T> ): Promise<T >;
4304
+ request<T> (name: string, options: LockOptions, callback: LockGrantedCallback<T> ): Promise<T >;
4305
4305
}
4306
4306
4307
4307
declare var LockManager: {
@@ -9627,8 +9627,8 @@ interface FrameRequestCallback {
9627
9627
(time: DOMHighResTimeStamp): void;
9628
9628
}
9629
9629
9630
- interface LockGrantedCallback {
9631
- ( lock : Lock | null ) : any ;
9630
+ interface LockGrantedCallback<T> {
9631
+ (lock: Lock | null): T ;
9632
9632
}
9633
9633
9634
9634
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change @@ -4300,8 +4300,8 @@ interface LockManager {
4300
4300
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
4301
4301
query(): Promise<LockManagerSnapshot>;
4302
4302
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
4303
- request(name: string, callback: LockGrantedCallback): Promise<any >;
4304
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any >;
4303
+ request<T> (name: string, callback: LockGrantedCallback<T> ): Promise<T >;
4304
+ request<T> (name: string, options: LockOptions, callback: LockGrantedCallback<T> ): Promise<T >;
4305
4305
}
4306
4306
4307
4307
declare var LockManager: {
@@ -9627,8 +9627,8 @@ interface FrameRequestCallback {
9627
9627
(time: DOMHighResTimeStamp): void;
9628
9628
}
9629
9629
9630
- interface LockGrantedCallback {
9631
- (lock: Lock | null): any ;
9630
+ interface LockGrantedCallback<T> {
9631
+ (lock: Lock | null): T ;
9632
9632
}
9633
9633
9634
9634
interface OnErrorEventHandlerNonNull {
Original file line number Diff line number Diff line change 469
469
"overrideSignatures": [
470
470
"new (options: any): AudioWorkletProcessorImpl"
471
471
]
472
+ },
473
+ "LockGrantedCallback": {
474
+ "typeParameters": [
475
+ {
476
+ "name": "T"
477
+ }
478
+ ],
479
+ "signature": {
480
+ "0": {
481
+ "overrideType": "T"
482
+ }
483
+ }
472
484
}
473
485
}
474
486
},
3655
3667
}
3656
3668
}
3657
3669
}
3670
+ },
3671
+ "LockManager": {
3672
+ "methods": {
3673
+ "method": {
3674
+ "request": {
3675
+ "typeParameters": {
3676
+ "name": "T"
3677
+ },
3678
+ "signature": {
3679
+ "0": {
3680
+ "typeParameters": [
3681
+ {
3682
+ "name": "T"
3683
+ }
3684
+ ],
3685
+ "param": [
3686
+ {
3687
+ "name": "callback",
3688
+ "overrideType": "LockGrantedCallback<T>"
3689
+ }
3690
+ ],
3691
+ "overrideType": "Promise<T>"
3692
+ },
3693
+ "1": {
3694
+ "typeParameters": [
3695
+ {
3696
+ "name": "T"
3697
+ }
3698
+ ],
3699
+ "param": [
3700
+ {
3701
+ "name": "callback",
3702
+ "overrideType": "LockGrantedCallback<T>"
3703
+ }
3704
+ ],
3705
+ "overrideType": "Promise<T>"
3706
+ }
3707
+ }
3708
+ }
3709
+ }
3710
+ }
3658
3711
}
3659
3712
}
3660
3713
},
You can’t perform that action at this time.
0 commit comments