Jump to content

Typescript inheritance and Phaser


ursuletzu
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...