diff --git a/packages/@uppy/utils/src/findAllDOMElements.js b/packages/@uppy/utils/src/findAllDOMElements.ts similarity index 75% rename from packages/@uppy/utils/src/findAllDOMElements.js rename to packages/@uppy/utils/src/findAllDOMElements.ts index 904d56660c..61bce36127 100644 --- a/packages/@uppy/utils/src/findAllDOMElements.js +++ b/packages/@uppy/utils/src/findAllDOMElements.ts @@ -2,11 +2,8 @@ import isDOMElement from './isDOMElement.ts' /** * Find one or more DOM elements. - * - * @param {string|Node} element - * @returns {Node[]|null} */ -export default function findAllDOMElements (element) { +export default function findAllDOMElements (element: string | Node): Node[] | null { if (typeof element === 'string') { const elements = document.querySelectorAll(element) return elements.length === 0 ? null : Array.from(elements)