Version TypeScript : tous les soirs (2.1.0-dev.201xxxxx)
Code
// A *self-contained* demonstration of the problem follows...
for(const a of document.querySelectorAll('div')) {}
Comportement prévisible:
Il devrait compiler.
Comportement réel :
error TS2495: Type 'NodeListOf<Element>' is not an array type or a string type
Commentaire le plus utile