I have an TypeScript app where I have function that selects html element, and another function that modifies that element. This far, I have done it like this:
const modifyElement(element:any):void => {
// do stuff to element
}
// call the function
modifyElement(document.querySelector("#id"))
ButI don't like doing it with type any, so what is the type I should give to it? ( or is this whole concept of passing HTML elements invalid TypeScript)