Versión de TypeScript: nocturno (2.1.0-dev.201xxxxx)
Código
// A *self-contained* demonstration of the problem follows...
for(const a of document.querySelectorAll('div')) {}
Comportamiento esperado:
Debería compilarse.
Comportamiento real:
error TS2495: Type 'NodeListOf<Element>' is not an array type or a string type
Comentario más útil