打字稿版本:每晚(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
error TS2495: Type 'NodeListOf<Element>' is not an array type or a string type
最有用的评论