Specify the array type (#653)

This commit is contained in:
woxtu
2022-08-03 00:40:08 +09:00
committed by GitHub
parent 844e04ff96
commit e4d1befcdb

View File

@@ -51,7 +51,7 @@ export class PyBox extends HTMLElement {
else this.widths.push(w)
}
} else {
this.widths = Array(mainDiv.children.length).fill('1 1 0')
this.widths = Array<string>(mainDiv.children.length).fill('1 1 0');
}
this.widths.forEach((width, index) => {