mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Specify the array type (#653)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user