phaser
phaser copied to clipboard
TypeScript: Layer#add() doesn't accept an array
Version
- Phaser Version: 3.60.0-beta.19 and earlier
Example Test Code
this.add.layer().add([this.add.graphics()]);
Argument of type 'Graphics[]' is not assignable to parameter of type 'GameObject'.
https://github.com/photonstorm/phaser/blob/b093ece6202e50b1354c67e57461e7114c8bd011/src/structs/List.js#L107