phaser3-docs icon indicating copy to clipboard operation
phaser3-docs copied to clipboard

[TS defs] Wrong type for pack attribute of Phaser.Scene.Settings.Config

Open SBCGames opened this issue 7 years ago • 0 comments

When creating new scene, string or Phaser.Scene.Settings.Config is used in constructor.

If using Config, it should be possible to use attribute pack and pass object with files to load. Currently type of this attribute in TS defs is: false | Phaser.Loader.FileTypes.PackFileConfig. It is not correct as this does not have attibutes like file files, prefix, etc.

pack attribute is taken by SceneManager and passed to LoaderPlugin which already expects type any and looks for attributes like files, prefix, etc.

So, I think type of pack attribute in Phaser.Scene.Settings.Config should be any.

SBCGames avatar Jun 24 '18 16:06 SBCGames