phaser/typescript
Matthew Ross 55214fe2df Allow debug.line to be used without error TS2346
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.
2016-04-20 09:19:11 -04:00
..
p2.d.ts split p2 definitions into its own file 2015-03-18 11:44:11 -07:00
phaser.comments.d.ts 2.4.6 Build files + docs + TS Docs. 2016-02-18 14:41:53 +00:00
phaser.d.ts Allow debug.line to be used without error TS2346 2016-04-20 09:19:11 -04:00
pixi.comments.d.ts 2.4.6 Build files + docs + TS Docs. 2016-02-18 14:41:53 +00:00
pixi.d.ts Huge TypeScript defs update (thanks to @clark-stevenson - this is all of the changes from #2156 merged into the current build) 2016-02-02 23:30:03 +00:00
readme.md Updated TypeScript Readme 2015-08-01 12:06:25 +01:00

TypeScript Definitions

Reference the phaser.d.ts in your project.

Please use TypeScript 1.4+

  • phaser.d.ts contains a reference to pixi.d.ts and p2.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.