The Wayback Machine - https://web.archive.org/web/20230323212112/https://github.com/photonstorm/phaser/issues/6416
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samme opened this issue Mar 16, 2023 · 0 comments
Open

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

samme opened this issue Mar 16, 2023 · 0 comments

Comments

@samme
Copy link
Contributor

samme commented Mar 16, 2023

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'.

* @param {*|Array.<*>} child - The item, or array of items, to add to the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants