vanillajs-browser-helpers
Version:
Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser
14 lines (13 loc) • 366 B
TypeScript
declare type Attributes = Record<string, string>;
interface SelectorParsing {
tagName: string;
attributes: Attributes;
}
/**
* Parses a selector string into a structured object
*
* @param selector - The CSS selector to parse
* @return The attribute parsing mapping
*/
export default function parseSelector(selector: string): SelectorParsing;
export {};