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.
undefined
andnull
are represent a missing element.TElement
is 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
.string
is a CSS selector for the element(s).JQuery
is a JQuery wrapper with the element(s).