Currently, I am dealing with a typescript variable that holds the outcome of a query on the DOM:
let games = document.getElementsByTagname("game");
My uncertainty lies in identifying the appropriate type for the resulting array. Should I expect an array containing HTMLElements?
// Attempt 1
let games : Array<HTMLElement> = document.getElementsByTagName("game");
// Attempt 2
let games : NodeList<HTMLElement> = document.getElementsByTagName("game");