phaser/typescript
2015-03-24 07:06:14 -07:00
..
p2.d.ts split p2 definitions into its own file 2015-03-18 11:44:11 -07:00
phaser.comments.d.ts Refactoring of the script to generate comments.d.ts 2015-02-05 21:30:28 +01:00
phaser.d.ts Fixed typescript def for ResizeCallback #1659 #1680 2015-03-23 08:13:58 +00:00
pixi.comments.d.ts Improve d.ts comments generation 2015-01-21 12:05:35 +01:00
pixi.d.ts minor typescript def file update 2015-03-24 07:06:14 -07:00
readme.md updated readme 2014-11-05 21:53:50 +00:00
webgl.d.ts Added webgl.d.ts for those who need it. Changed readme.txt to readme.md 2014-11-05 19:25:53 +00:00

TypeScript Definitions

If you are a phaser dev then reference the phaser.d.ts in your project.

  • phaser.d.ts contains a reference to pixi.d.ts and so both these files must remain siblings in the same directory.
  • pixi.d.ts has no dependencies and can be used by pixi devs standalone*

*Versions of TypeScript lower than version 1.0 may experience errors in pixi.d.ts due to missing WebGL definitions. If you fall into this category and cannot upgrade your version, then a webgl.d.ts has been provided but is disabled by default. Add this line to the top of the pixi.d.ts file /// <reference path="webgl.d.ts" />

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.