phaser icon indicating copy to clipboard operation
phaser copied to clipboard

TypeScript: Layer#add() doesn't accept an array

Open samme opened this issue 1 year ago • 0 comments

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

samme avatar Mar 16 '23 19:03 samme