title: Typescript,'NodeListOf<Element>' is not an array type or a string type
body: <p>Converting my JS to TS strict mode.</p>
  <p>The following syntax looks fine to me but TS is complaining in the <code>for</code> loop on <code>allSubMenus</code> with:</p>
  <pre><code>[ts] Type 'NodeListOf&lt;Element&gt;' is not an array type or a string type.
  </code></pre>
  <p>What am I missing?</p>
  <pre><code>function subAct(target:Node){
  
    const allSubMenus : NodeListOf&lt;Element&gt; = document.querySelectorAll('.subMenuItems') 
  
    for (const sub of allSubMenus){
      sub.classList.remove('active')
    }  
  }
  </code></pre>