-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Hi,
Getting a compile error when trying to compile:
// ul is an HTMLElement
for (let child of ul.children) {
//body
}
I get the following error: error TS2495: Type 'HTMLCollection' is not an array type or a string type.
Is there a way to get type support for this? Or is too much work to bother with?
sampsyo, felixfbecker, lucasbasquerotto and builtbylane
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue