@types/web 0.0.213 → 0.0.214
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 +1 -1
- package/index.d.ts +4 -4
- package/package.json +1 -1
- package/ts5.5/index.d.ts +4 -4
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.214 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.214.
|
package/index.d.ts
CHANGED
|
@@ -15699,8 +15699,8 @@ interface LockManager {
|
|
|
15699
15699
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
|
|
15700
15700
|
query(): Promise<LockManagerSnapshot>;
|
|
15701
15701
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
|
|
15702
|
-
request(name: string, callback: LockGrantedCallback): Promise<
|
|
15703
|
-
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<
|
|
15702
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15703
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15704
15704
|
}
|
|
15705
15705
|
|
|
15706
15706
|
declare var LockManager: {
|
|
@@ -28447,8 +28447,8 @@ interface IntersectionObserverCallback {
|
|
|
28447
28447
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
28448
28448
|
}
|
|
28449
28449
|
|
|
28450
|
-
interface LockGrantedCallback {
|
|
28451
|
-
(lock: Lock | null):
|
|
28450
|
+
interface LockGrantedCallback<T> {
|
|
28451
|
+
(lock: Lock | null): T;
|
|
28452
28452
|
}
|
|
28453
28453
|
|
|
28454
28454
|
interface MediaSessionActionHandler {
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -15679,8 +15679,8 @@ interface LockManager {
|
|
|
15679
15679
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
|
|
15680
15680
|
query(): Promise<LockManagerSnapshot>;
|
|
15681
15681
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
|
|
15682
|
-
request(name: string, callback: LockGrantedCallback): Promise<
|
|
15683
|
-
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<
|
|
15682
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15683
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
|
|
15684
15684
|
}
|
|
15685
15685
|
|
|
15686
15686
|
declare var LockManager: {
|
|
@@ -28425,8 +28425,8 @@ interface IntersectionObserverCallback {
|
|
|
28425
28425
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
28426
28426
|
}
|
|
28427
28427
|
|
|
28428
|
-
interface LockGrantedCallback {
|
|
28429
|
-
(lock: Lock | null):
|
|
28428
|
+
interface LockGrantedCallback<T> {
|
|
28429
|
+
(lock: Lock | null): T;
|
|
28430
28430
|
}
|
|
28431
28431
|
|
|
28432
28432
|
interface MediaSessionActionHandler {
|