phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Game.renderer has the wrong typescript type

Open sanchopancho13 opened this issue 11 years ago • 2 comments

The Game "renderer" property is currently defined as a number type in the typescript definition file, however it is declared like this in the jsdoc:

{PIXI.CanvasRenderer|PIXI.WebGLRenderer}

In typescript 1.4 this can be declared as a union type. Prior to that, I think the correct way to support that is with the 'any' type.

sanchopancho13 avatar Jun 27 '15 05:06 sanchopancho13

@clark-stevenson what do you reckon?

photonstorm avatar Jul 07 '15 03:07 photonstorm

Done! Sorry this one slipped past me. @sanchopancho13 was correct.

clark-stevenson avatar Jul 07 '15 07:07 clark-stevenson