ursuletzu Posted November 15, 2013 Share Posted November 15, 2013 Hi, I noticed in an older thread that the enthusiasm regarding Typescript has faded away, dissapeared. Is the Typescript inheritance compatible with Phaser "inheritance" using extend function? If i inherit from Game, GameState for example in Typescript, will I have any problems? PS: I've heard that 0.9.5 branch of Typescript is more stable. Also Webstorm has a great support for typescript... Regards Link to comment Share on other sites More sharing options...
rich Posted November 15, 2013 Share Posted November 15, 2013 There is on-going work to fix up the TypeScript definition file, which you can follow along in github, but there are no plans to do anything beyond this. Link to comment Share on other sites More sharing options...
borisyankov Posted November 16, 2013 Share Posted November 16, 2013 There is no magic about TypeScript's inheritance, it is implemented via a rather simple and robust function that copies object, properties.You can have a look at any compiled code to see it.My guess will be it is now, and will be in future 100% compatible. Rich, once you are happy with the TypeScript definitions, it would be cool to add them to the DefinitelyTyped repo. Link to comment Share on other sites More sharing options...
Recommended Posts