@studiometa/js-toolkit
Version:
A set of useful little bits of JavaScript to boost your project! 🚀
11 lines (10 loc) • 497 B
TypeScript
/**
* Get the target elements for the lazy import helper functions.
*
* @param {string|HTMLElement|HTMLElement[]} nameOrSelectorOrElement
* The original selector or element, or list of elements.
* @param {HTMLElement} [context]
* The optional context to use to query for elements.
* @returns {HTMLElement[]} A normalized list of elements.
*/
export declare function getTargetElements(nameOrSelectorOrElement: string | HTMLElement | HTMLElement[], context: HTMLElement): HTMLElement[];