Union of types that can be interpreted as referencing to one or multiple (DOM) elements.
undefined
null
TElement
TElement[]
NodeListOf<TElement>
querySelectorAll
HTMLCollectionOf<TElement>
getElementsByClassName
string
JQuery
Type of the DOM element.
A union type with various different types corresponding to an element.
Union of types that can be interpreted as referencing to one or multiple (DOM) elements.
undefinedandnullare represent a missing element.TElementis the element itself.TElement[]is an array of elements.NodeListOf<TElement>is a list of elements, returned byquerySelectorAll.HTMLCollectionOf<TElement>is a collection of elements, returned bygetElementsByClassName.stringis a CSS selector for the element(s).JQueryis a JQuery wrapper with the element(s).