phaser/typescript/readme.md

12 lines
798 B
Markdown
Raw Normal View History

# TypeScript Definitions #
2014-11-05 21:52:00 +00:00
If you are a phaser dev then reference the `phaser.d.ts` in your project.
2014-11-05 21:52:00 +00:00
- `phaser.d.ts` contains a reference to `pixi.d.ts` and so both these files must remain siblings in the same directory.
2014-11-05 21:53:50 +00:00
- `pixi.d.ts` has no dependencies and can be used by pixi devs standalone*
2014-11-05 21:53:50 +00:00
*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" />`
2014-11-05 21:52:00 +00:00
## 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.