@joist/element
Version:
Intelligently apply styles to WebComponents
11 lines • 911 B
TypeScript
type Tags = keyof HTMLElementTagNameMap;
type SVGTags = keyof SVGElementTagNameMap;
type MathTags = keyof MathMLElementTagNameMap;
type NodeUpdate<T extends Node> = Partial<T> | ((node: T) => Partial<T> | null);
type QueryAllResult<T extends Node> = (updates?: NodeUpdate<T>) => NodeListOf<T>;
export declare function queryAll<K extends Tags>(selectors: K, root?: HTMLElement | ShadowRoot): QueryAllResult<HTMLElementTagNameMap[K]>;
export declare function queryAll<K extends SVGTags>(selectors: K, root?: HTMLElement | ShadowRoot): QueryAllResult<SVGElementTagNameMap[K]>;
export declare function queryAll<K extends MathTags>(selectors: K, root?: HTMLElement | ShadowRoot): QueryAllResult<MathMLElementTagNameMap[K]>;
export declare function queryAll<E extends HTMLElement = HTMLElement>(selectors: string, root?: HTMLElement | ShadowRoot): QueryAllResult<E>;
export {};
//# sourceMappingURL=query-all.d.ts.map