@knotx/viselect
Version:
[Forked] Simple, lightweight and modern library library for making visual DOM Selections.
9 lines (8 loc) • 362 B
TypeScript
export type SelectAllSelectors = (string | Element)[] | string | Element;
/**
* Takes a selector (or array of selectors) and returns the matched nodes.
* @param selector The selector or an Array of selectors.
* @param doc
* @returns {Array} Array of DOM-Nodes.
*/
export declare const selectAll: (selector: SelectAllSelectors, doc?: Document) => Element[];