Enric Posted May 4, 2014 Share Posted May 4, 2014 Hi, I just started programming with phaserjs. I really enjoy it. But I have some issue with the typescript version. When I compile it with grunt I have this error : "error TS2094: The property 'angle' does not exist on value of type 'Phaser.Point'.". So at the begining I thought I've made a typo but after looking at the file Phaser.d.ts I notice that the methods "angle" and "anglesq" are not present in the file whereas they are present in the js file.I'm only the one or it's a real issue ? Link to comment Share on other sites More sharing options...
Manifest Posted May 4, 2014 Share Posted May 4, 2014 The definitions files are not always 100% complete, I believe they are done by hand (or were, at some stage). You can add definitions to the .d.ts file yourself and it should pick it up. Link to comment Share on other sites More sharing options...
clark Posted May 5, 2014 Share Posted May 5, 2014 Yeah Manifest is right. Generally speaking we are 1-6 days out of date compared to the latest Dev version. There is a pull request with these missing definitions, it has just not been merged yet. I find it easier to wait a few days and browse the commit history but you can feel free to push to the dev/build/phaser.d.ts file with any mistakes you find. Link to comment Share on other sites More sharing options...
Enric Posted May 8, 2014 Author Share Posted May 8, 2014 Ok. Thanks for your answers Link to comment Share on other sites More sharing options...
Recommended Posts