إصدار TypeScript: nightly (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
التعليق الأكثر فائدة