Bigmacbook Posted February 22, 2015 Share Posted February 22, 2015 Is Pixi.js going to be getting a typescript definition file anytime soon? Quote Link to comment Share on other sites More sharing options...
xerver Posted February 23, 2015 Share Posted February 23, 2015 Not unless someone has a tool for generating it from jsdoc comments, or the community wants to maintain one. There are quite a few attempts to have one maintained, but they always fall out of date due to the lack of actual people using them. The most up-to-date one is probably the one shipped with Phaser: https://github.com/photonstorm/phaser/blob/a75e28d2b88d833770e5307854dee5ba02ab452e/typescript/pixi.d.ts But it is for v2 of Pixi and will be inaccurate after the v3 release. Quote Link to comment Share on other sites More sharing options...
digibo Posted February 26, 2015 Share Posted February 26, 2015 Are there many API changes in v3? I had a quick glance and noticed the PIXI.core etc. split, but haven't looked at the classes. Quote Link to comment Share on other sites More sharing options...
xerver Posted February 26, 2015 Share Posted February 26, 2015 Are there many API changes in v3? I had a quick glance and noticed the PIXI.core etc. split, but haven't looked at the classes. Yes, there are quite a few. This is a major version release which means it contains api-breaking changes. The internals have changed a ton, and the API reflects a lot of that. Most API changes are renaming or moving around, but there are quite a few things that have just flat out changed to something new. Quote Link to comment Share on other sites More sharing options...
clark Posted February 27, 2015 Share Posted February 27, 2015 I just wanted to confirm that xerver was correct at that being the most up to date pixi.d.ts file. Quote Link to comment Share on other sites More sharing options...
vancura Posted March 13, 2015 Share Posted March 13, 2015 But the bad news is new Phaser will be without Pixi.js, so I suppose that definition file won't be updated anymore. Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted December 27, 2016 Share Posted December 27, 2016 On 13.03.2015 at 8:56 PM, vancura said: But the bad news is new Phaser will be without Pixi.js What do you mean? Quote Link to comment Share on other sites More sharing options...
clark Posted December 27, 2016 Share Posted December 27, 2016 This is up to date. https://github.com/pixijs/pixi-typescript In the future will look at possibly including types with the official package.json so that they are automatically available when acquiring pixi from npm. labrat.mobi and 8Observer8 2 Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted December 28, 2016 Share Posted December 28, 2016 8 hours ago, clark said: This is up to date. https://github.com/pixijs/pixi-typescript In the future will look at possibly including types with the official package.json so that they are automatically available when acquiring pixi from npm. Thanks very much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.