mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
55214fe2df
When calling debug.line('Any string'); the TypeScript compiler give error TS2346 because there are no parameters in the method definition. This creates a dummy parameter which allows the same functionality without the compiler error. |
||
---|---|---|
.. | ||
p2.d.ts | ||
phaser.comments.d.ts | ||
phaser.d.ts | ||
pixi.comments.d.ts | ||
pixi.d.ts | ||
readme.md |
TypeScript Definitions
Reference the phaser.d.ts
in your project.
Please use TypeScript 1.4+
phaser.d.ts
contains a reference topixi.d.ts
andp2.d.ts
and so both these files must remain siblings in the same directory.pixi.d.ts
has deviated from the official project. If you are a pixi user, pick up the ball over at the official pixi typescript repo.
Contributing
If you find any mistakes in these definitions or you feel they can be improved in any way, please make a pull request against the dev branch.
Note
Creature
and Box2D
are not yet defined.