Ezelia / EPSy

a Particles system for Phaser and Pixi
40 stars 15 forks source link

TypeScript support? #3

Closed adamq-q closed 9 years ago

adamq-q commented 9 years ago

This plugin is awesome. Has anyone had any luck getting this working in a TypeScript Phaser project?

alaa-eddine commented 9 years ago

Hi, the plugin is writted in TypeScript and is 100% compatible with Phaser TS projects :) did you encountered any issue while importing code to a Phaser project ?

adamq-q commented 9 years ago

Hi, I noticed that right after I posted the question! And thank you for bearing with me as I'm new to TypeScript. I see that all the build files are all JS. So would I just want to include the 3 .ts files found in /core?

alaa-eddine commented 9 years ago

I just updated the build with TS definitions for EPSY so you can use it to get intellisense completion (I guess this is why you wanted TS integration). the EPSY.d.ts file will give you the completion feature.

for Phaser and Pixi plugins they are written with vanilla JS so I can't generate .d.ts files for them, I'll create .d.ts manually later :) but you don't really need them since the code you need to know is what's generated from EPSY Editor