@types/web 0.0.268 → 0.0.269

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.269 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.269.
package/index.d.ts CHANGED
@@ -11295,6 +11295,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11295
11295
  *
11296
11296
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11297
11297
  */
11298
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
11299
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
11300
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
11298
11301
  matches(selectors: string): boolean;
11299
11302
  /**
11300
11303
  * 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.269",
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
@@ -11285,6 +11285,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11285
11285
  *
11286
11286
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11287
11287
  */
11288
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
11289
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
11290
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
11288
11291
  matches(selectors: string): boolean;
11289
11292
  /**
11290
11293
  * 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
@@ -11295,6 +11295,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11295
11295
  *
11296
11296
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11297
11297
  */
11298
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
11299
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
11300
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
11298
11301
  matches(selectors: string): boolean;
11299
11302
  /**
11300
11303
  * The **`releasePointerCapture()`** method of the Element interface releases (stops) _pointer capture_ that was previously set for a specific (PointerEvent) _pointer_.