Comparing version 0.0.14 to 0.0.15
@@ -7,2 +7,7 @@ import { HTMLElementTag } from './types'; | ||
/** | ||
* Selector types | ||
* @ignore | ||
*/ | ||
declare type NodeListByTagName<T extends HTMLElementTag> = NodeListOf<HTMLElementTagNameMap[T]>; | ||
/** | ||
* Select all DOM elements that match a query selector | ||
@@ -18,3 +23,4 @@ */ | ||
*/ | ||
parent?: Element | string): (T extends Element[] ? Element[] : T extends Element ? Element[] : T extends HTMLElementTag ? NodeListOf<HTMLElementTagNameMap[T]> : NodeListOf<Element>); | ||
parent?: Element | string): (T extends Element[] ? Element[] : T extends Element ? Element[] : T extends HTMLElementTag ? NodeListByTagName<T> : NodeListOf<Element>); | ||
export {}; | ||
//# sourceMappingURL=selectAll.d.ts.map |
{ | ||
"name": "vevet-dom", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "DOM utilities", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -10,4 +10,10 @@ import { isElement } from './isElement'; | ||
/** | ||
* Selector types | ||
* @ignore | ||
*/ | ||
type NodeListByTagName<T extends HTMLElementTag> = NodeListOf<HTMLElementTagNameMap[T]>; | ||
/** | ||
@@ -29,3 +35,3 @@ * Select all DOM elements that match a query selector | ||
// @ts-ignore | ||
T extends HTMLElementTag ? NodeListOf<HTMLElementTagNameMap[T]> : | ||
T extends HTMLElementTag ? NodeListByTagName<T> : | ||
NodeListOf<Element> | ||
@@ -32,0 +38,0 @@ ) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
428415
4432