Closed
Description
interface Files {
[key: number]: SomeFile
length: number
}
var data: Files = []
// no complaints
for (var i in data) {
}
// Type 'Files' is not an array type or a string type
for (let file of data) {
}
I'm not sure what is the right move here. Files has an index but that doesn't mean it's iterable/enumerable. Think the check should just be removed.