title: What is the array type for html elements in typescript?
body: <p>I have a typescript variable that stores the result of a DOM query:</p>
  
  <pre><code>let games = document.getElementsByTagname("game");
  </code></pre>
  
  <p>But what is the correct type of the result array? I would expect an array that contains htmlelements?</p>
  
  <pre><code>// not working
  let games : Array&lt;HTMLElement&gt; = document.getElementsByTagName("game");
  // also not working
  let games : NodeList&lt;HTMLElement&gt; = document.getElementsByTagName("game");
  </code></pre>