title: Unable to get innerText in Angular 4
body: <p>HTML part</p>
  
  <pre><code>&lt;body&gt;
    &lt;div&gt;&lt;span&gt;Hello how are you&lt;/span&gt;&lt;/div&gt;
    &lt;div&gt;&lt;span&gt;Some random text&lt;/span&gt;&lt;/div&gt;
    &lt;div&gt;This is more text&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Typescript part</p>
  
  <pre><code>someMethod() {
    const allDivs = document.querySelectorAll('div');
    const arrayAllDivs = Array.from(allDivs);
    const allText = arrayAllDivs.map(divs =&gt; divs.innerText);
    console.log(allText);
  }
  </code></pre>
  
  <p>Although I am able to log the innerText of all these divs in the console. I am getting an error:  error TS2339: <em>Property 'innerText' does not exist on type '{}'.</em> How to resolve this error as this is breaking up the build.</p>