title: Typescript throwing error on working code
body: <p>I'm implementing Typescript into an example project to practice the use of webpack, ES6, npm...</p>
  
  <p>I have loaders 'awesome-typescript-loader', 'babel-loader' which are functioning fine as the code is being bundled and is running.</p>
  
  <p>The problem is that when i test something like this -</p>
  
  <pre><code>document.getElementById('test-id').innerHTML = 'asdf';
  </code></pre>
  
  <p>I get an error in the browser console.</p>
  
  <p><a href="https://i.stack.imgur.com/b2mlX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b2mlX.png" alt="Typescript browser console error"></a></p>
  
  <p>However, the code <em>is</em> working, and the ID i am specifying is having that 'asdf' string injected.</p>
  
  <p>I have tried alternate loader 'ts-loader', using <code>querySelector()</code> instead of <code>getElementById()</code>... also assigning the element to a variable, then trying to set the <code>.innerHTML</code>, but to no avail.</p>