title: how do you remove false error in typescript (error: TS2339)?
body: <pre><code>var out = document.getElementsByClassName('myclass')[0];
  out.focus();
  out.select();
  out.selectionStart =1;
  </code></pre>
  
  <p>I'm trying to do this in my typescript file, but for some reason it gives me these errors</p>
  
  <blockquote>
    <p>ERROR in src/app/main/utilities/keyboard/keyboard.component.ts(29,9):
    error TS2339: Property 'focus' does not exist on type 'Element'.
    src/app/main/utilities/keyboard/keyboard.component.ts(30,9): error
    TS2339: Property 'select' does not exist on type 'Element'.
    src/app/main/utilities/keyboard/keyboard.component.ts(31,9): error
    TS2339: Property 'selectionStart' does not exist on type 'Element'.</p>
  </blockquote>
  
  <p>It is saying that the property does not exist, but it does. When I run this, everything works as it should but I have to do with a huge block of red text in my console which is annoying.</p>