@types/web 0.0.268 → 0.0.270

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.268 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.268.
50
+ You can read what changed in version 0.0.270 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.270.
package/index.d.ts CHANGED
@@ -908,6 +908,7 @@ interface InputEventInit extends UIEventInit {
908
908
  interface IntersectionObserverInit {
909
909
  root?: Element | Document | null;
910
910
  rootMargin?: string;
911
+ scrollMargin?: string;
911
912
  threshold?: number | number[];
912
913
  }
913
914
 
@@ -11295,6 +11296,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11295
11296
  *
11296
11297
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11297
11298
  */
11299
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
11300
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
11301
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
11298
11302
  matches(selectors: string): boolean;
11299
11303
  /**
11300
11304
  * The **`releasePointerCapture()`** method of the Element interface releases (stops) _pointer capture_ that was previously set for a specific (PointerEvent) _pointer_.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.268",
3
+ "version": "0.0.270",
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
@@ -908,6 +908,7 @@ interface InputEventInit extends UIEventInit {
908
908
  interface IntersectionObserverInit {
909
909
  root?: Element | Document | null;
910
910
  rootMargin?: string;
911
+ scrollMargin?: string;
911
912
  threshold?: number | number[];
912
913
  }
913
914
 
@@ -11285,6 +11286,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11285
11286
  *
11286
11287
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11287
11288
  */
11289
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
11290
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
11291
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
11288
11292
  matches(selectors: string): boolean;
11289
11293
  /**
11290
11294
  * The **`releasePointerCapture()`** method of the Element interface releases (stops) _pointer capture_ that was previously set for a specific (PointerEvent) _pointer_.
package/ts5.6/index.d.ts CHANGED
@@ -908,6 +908,7 @@ interface InputEventInit extends UIEventInit {
908
908
  interface IntersectionObserverInit {
909
909
  root?: Element | Document | null;
910
910
  rootMargin?: string;
911
+ scrollMargin?: string;
911
912
  threshold?: number | number[];
912
913
  }
913
914
 
@@ -11295,6 +11296,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11295
11296
  *
11296
11297
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11297
11298
  */
11299
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
11300
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
11301
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
11298
11302
  matches(selectors: string): boolean;
11299
11303
  /**
11300
11304
  * The **`releasePointerCapture()`** method of the Element interface releases (stops) _pointer capture_ that was previously set for a specific (PointerEvent) _pointer_.