select-dom
Advanced tools
Comparing version 4.2.0-2 to 4.2.0-3
// https://github.com/Microsoft/TypeScript/blob/9d3707d671592d030386956c9ce39e539b8d0972/src/lib/dom.generated.d.ts#L10581 | ||
type BaseElement = Element | DocumentFragment; | ||
type BaseElements = Element | Element[] | NodeList | DocumentFragment; | ||
@@ -8,23 +9,23 @@ | ||
selectors: K, | ||
baseElement?: Element | ||
baseElement?: BaseElement | ||
): HTMLElementTagNameMap[K] | null; | ||
<K extends keyof SVGElementTagNameMap>( | ||
selectors: K, | ||
baseElement?: Element | ||
baseElement?: BaseElement | ||
): SVGElementTagNameMap[K] | null; | ||
<E extends Element = Element>( | ||
selectors: string, | ||
baseElement?: Element | ||
baseElement?: BaseElement | ||
): E | null; | ||
exists<K extends keyof HTMLElementTagNameMap>( | ||
selectors: K, | ||
baseElement?: Element | ||
baseElement?: BaseElement | ||
): boolean; | ||
exists<K extends keyof SVGElementTagNameMap>( | ||
selectors: K, | ||
baseElement?: Element | ||
baseElement?: BaseElement | ||
): boolean; | ||
exists<E extends Element = Element>( | ||
selectors: string, | ||
baseElement?: Element | ||
baseElement?: BaseElement | ||
): boolean; | ||
@@ -31,0 +32,0 @@ all<K extends keyof HTMLElementTagNameMap>( |
{ | ||
"name": "select-dom", | ||
"version": "4.2.0-2", | ||
"version": "4.2.0-3", | ||
"description": "Extra lightweight DOM selector helper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6205
100