title: How to use document.getElementById() method in TypeScript?
body: <p>I am trying to reset HTML Form in order to clear all the values in the input fields using;</p>
  
  <pre><code>document.getElementById('myForm').reset(); 
  </code></pre>
  
  <p>But I can use that in typescript, it's giving me an error saying <code>document.getElementById('myForm') may be null</code></p>
  
  <p>How can I solve this issue?</p>