title: Property 'focus' does not exist on 'Element'?
body: <p>Creating a keyboard navigation, and facing the following issue:</p>
  
  <pre><code>let currentActive = document.activeElement;
  if (e.key === "ArrowLeft") {
    currentActive.previousElementSibling.focus();
  }
  </code></pre>
  
  <p>The code works as expected, but TypeScript complains that <code>Property 'focus' does not exist on 'Element'?</code> - the <code>currentActive</code> is an <code>&lt;img /&gt;</code> tag.</p>
  
  <p>I've tried assigning the currentActive to be a HTMLElement, by doing so:
  <code>let currentActive = document.activeElement as HTMLCollectionOf&lt;HTMLElement&gt;</code>, but it doesn't seem to like that.</p>
  
  <p>What am I missing?</p>