2
0
Fork 0
mirror of https://github.com/photonstorm/phaser synced 2025-02-19 23:48:33 +00:00
phaser/typescript
2014-11-05 19:25:53 +00:00
..
phaser.d.ts Split pixi.d.ts and phaser.d.ts 2014-11-05 18:19:45 +00:00
pixi.d.ts Split pixi.d.ts and phaser.d.ts 2014-11-05 18:19:45 +00:00
readme.md Added webgl.d.ts for those who need it. Changed readme.txt to readme.md 2014-11-05 19:25:53 +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, just grab the whole directory as is. It is setup with sibling references and is the easiest way to get full typed support. Otherwise:

  • phaser.plugins.x.d.ts depend on phaser.d.ts and are optional.*
  • phaser.d.ts depends on pixi.d.ts and so both these files are needed
  • pixi.d.ts has no dependicies and can be used by pixi devs**

*If creating a third party plugin definition. Please add a reference path to point at phaser /// <reference path="phaser.d.ts" />

**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 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" /> to fix the type errors.