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?
Hi,
Getting a compile error when trying to compile:
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?