- qs<K extends keyof HTMLElementTagNameMap>(
selectors: K,
): null | HTMLElementTagNameMap[K] Type Parameters
- K extends keyof HTMLElementTagNameMap
Returns null | HTMLElementTagNameMap[K]
- qs<K extends keyof SVGElementTagNameMap>(
selectors: K,
): null | SVGElementTagNameMap[K] Type Parameters
- K extends keyof SVGElementTagNameMap
Returns null | SVGElementTagNameMap[K]
- qs<K extends keyof MathMLElementTagNameMap>(
selectors: K,
): null | MathMLElementTagNameMap[K] Type Parameters
- K extends keyof MathMLElementTagNameMap
Returns null | MathMLElementTagNameMap[K]
- qs<K extends keyof HTMLElementDeprecatedTagNameMap>(
selectors: K,
): null | HTMLElementDeprecatedTagNameMap[K] Type Parameters
- K extends keyof HTMLElementDeprecatedTagNameMap
Returns null | HTMLElementDeprecatedTagNameMap[K]
- qs<E extends Element = Element>(selectors: string): null | E
Type Parameters
- E extends Element = Element
Returns null | E
Returns the first element that is a descendant of node that matches selectors.
MDN Reference