phaser/v2-community/typescript
2017-01-03 20:26:11 +00:00
..
box2d.d.ts Updated folder paths and the 2.7 README. 2016-11-23 00:17:46 +00:00
p2.d.ts Updated folder paths and the 2.7 README. 2016-11-23 00:17:46 +00:00
phaser.comments.d.ts Update from latest merges updates for release. 2016-12-06 23:50:50 +00:00
phaser.d.ts Fixes #2807 2016-12-05 10:27:15 +00:00
phaser_box2d.d.ts resolves #2911 2016-12-12 21:22:24 -08:00
pixi.comments.d.ts Update from latest merges updates for release. 2016-12-06 23:50:50 +00:00
pixi.d.ts Fixed #2899 2016-12-05 09:50:49 +00:00
readme.md Fixed typings install source URL. 2017-01-03 20:26:11 +00:00
tslint.json Updated folder paths and the 2.7 README. 2016-11-23 00:17:46 +00:00
typings.json Updated folder paths and the 2.7 README. 2016-11-23 00:17:46 +00: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.

Including typescript definitions in your project using Typings

You can now use typings, the TypeScript Definition Manager, to include Phaser's typescript definitions in your project:

  • Make sure that typings is installed in your system: npm install -g typings
  • Install phaser typescript definitions as a global dependency:
typings install github:photonstorm/phaser/v2-community/typescript/typings.json -GD

This will make phaser typescript definitions available for your compiler so that there is no need to reference them from your source files. For more information, check the official typings site.

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 defs are not yet provided.

The Box2D defs come from https://github.com/SBCGames/Phaser-Box2D-Typescript-defs