Version
Description
This code produces a typescript compiler error:
export class MyScene extends Scene {
create() {
const myLayer = new Phaser.GameObjects.Layer()
this.add.existing(myLayer)
}
}
The error:
Argument of type 'Layer' is not assignable to parameter of type 'GameObject | Group'.
Makes sense, as Layer is not a GameObject, so I guess the existing() method on GameObjectFactory should now take GameObject | Group | Layer, right?