@types/web 0.0.213 → 0.0.215

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
@@ -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.213 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.213.
50
+ You can read what changed in version 0.0.215 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.215.
package/index.d.ts CHANGED
@@ -11503,8 +11503,12 @@ interface HTMLIFrameElement extends HTMLElement {
11503
11503
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
11504
11504
  */
11505
11505
  height: string;
11506
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */
11507
- loading: string;
11506
+ /**
11507
+ * Sets or retrieves the policy for loading iframe elements that are outside the viewport.
11508
+ *
11509
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading)
11510
+ */
11511
+ loading: "eager" | "lazy";
11508
11512
  /**
11509
11513
  * Sets or retrieves a URI to a long description of the object.
11510
11514
  * @deprecated
@@ -15699,8 +15703,8 @@ interface LockManager {
15699
15703
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
15700
15704
  query(): Promise<LockManagerSnapshot>;
15701
15705
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
15702
- request(name: string, callback: LockGrantedCallback): Promise<any>;
15703
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
15706
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
15707
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
15704
15708
  }
15705
15709
 
15706
15710
  declare var LockManager: {
@@ -28447,8 +28451,8 @@ interface IntersectionObserverCallback {
28447
28451
  (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
28448
28452
  }
28449
28453
 
28450
- interface LockGrantedCallback {
28451
- (lock: Lock | null): any;
28454
+ interface LockGrantedCallback<T> {
28455
+ (lock: Lock | null): T;
28452
28456
  }
28453
28457
 
28454
28458
  interface MediaSessionActionHandler {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.213",
3
+ "version": "0.0.215",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -11490,8 +11490,12 @@ interface HTMLIFrameElement extends HTMLElement {
11490
11490
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
11491
11491
  */
11492
11492
  height: string;
11493
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */
11494
- loading: string;
11493
+ /**
11494
+ * Sets or retrieves the policy for loading iframe elements that are outside the viewport.
11495
+ *
11496
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading)
11497
+ */
11498
+ loading: "eager" | "lazy";
11495
11499
  /**
11496
11500
  * Sets or retrieves a URI to a long description of the object.
11497
11501
  * @deprecated
@@ -15679,8 +15683,8 @@ interface LockManager {
15679
15683
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
15680
15684
  query(): Promise<LockManagerSnapshot>;
15681
15685
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
15682
- request(name: string, callback: LockGrantedCallback): Promise<any>;
15683
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
15686
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
15687
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
15684
15688
  }
15685
15689
 
15686
15690
  declare var LockManager: {
@@ -28425,8 +28429,8 @@ interface IntersectionObserverCallback {
28425
28429
  (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
28426
28430
  }
28427
28431
 
28428
- interface LockGrantedCallback {
28429
- (lock: Lock | null): any;
28432
+ interface LockGrantedCallback<T> {
28433
+ (lock: Lock | null): T;
28430
28434
  }
28431
28435
 
28432
28436
  interface MediaSessionActionHandler {