TypeScriptバージョン:毎晩(2.1.0-dev.201xxxxx)
コード
// A *self-contained* demonstration of the problem follows...
for(const a of document.querySelectorAll('div')) {}
予想される行動:
コンパイルする必要があります。
実際の動作:
error TS2495: Type 'NodeListOf<Element>' is not an array type or a string type
最も参考になるコメント