phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37k stars 7.08k forks source link

SceneManager.getScene has wrong return type in ts definition #6821

Closed vankop closed 1 month ago

vankop commented 4 months ago

Version

Description

SceneManager.getScene has wrong return type in ts definition. see types/phaser.d.ts. Should be Phaser.Scene if typeof key === "string"

Example Test Code

Additional Information

zekeatchan commented 3 months ago

Hi @vankop, kindly provide test code examples so we can investigate further and have a better understanding of the issue you're facing. Thanks!

photonstorm commented 1 month ago

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.