select-dom
Advanced tools
Comparing version 7.0.0-0 to 7.0.0-1
@@ -7,3 +7,3 @@ declare type BaseElements = ParentNode | Iterable<ParentNode>; | ||
*/ | ||
declare function select<TElement extends Element>(selectors: string | string[], baseElement?: ParentNode): TElement | undefined; | ||
declare function select<TElement extends Element = HTMLElement>(selectors: string | string[], baseElement?: ParentNode): TElement | undefined; | ||
declare namespace select { | ||
@@ -19,3 +19,3 @@ var last: typeof selectLast; | ||
*/ | ||
declare function selectLast<TElement extends Element>(selectors: string | string[], baseElement?: ParentNode): TElement | undefined; | ||
declare function selectLast<TElement extends Element = HTMLElement>(selectors: string | string[], baseElement?: ParentNode): TElement | undefined; | ||
/** | ||
@@ -32,3 +32,3 @@ * @param selectors One or more CSS selectors separated by commas | ||
*/ | ||
declare function selectAll<TElement extends Element>(selectors: string | string[], baseElement?: BaseElements): TElement | undefined; | ||
declare function selectAll<TElement extends Element = HTMLElement>(selectors: string | string[], baseElements?: BaseElements): TElement[]; | ||
export default select; |
{ | ||
"name": "select-dom", | ||
"version": "7.0.0-0", | ||
"version": "7.0.0-1", | ||
"description": "Extra lightweight DOM selector helper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
8514