turbulenz / turbulenz_engine

Turbulenz is a modular 3D and 2D game framework for making HTML5 powered games for browsers, desktops and mobile devices.

Home Page:http://turbulenz.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest Typescript compiler breaks bundled .d.ts files

jakobmulvad opened this issue · comments

It seems the latest typescript compiler has a stricter syntax of the .d.ts files, which causes the .d.ts files bundled with the SDK to not compile anymore.

More specifically the problem is these two changes:

  • 'declare' now required for top level non-interface declarations in .d.ts files
  • No longer accept semicolon at the end of methods

More about the breaking changes can be found here:

https://typescript.codeplex.com/wikipage?title=Known%20breaking%20changes%20between%200.8%20and%200.9

You can download older releases of the Typescript compile on their site so it's not a major issue right now, but something that should be fixed none the less.

The current version of the engine supports 0.8.3 of the TypeScript compiler only.

We are working on updating, but we are seeing a few stability and performance issues with the new compiler so we may wait until the next revision before moving to the 0.9 series.

Re-opening to keep track of the 0.9.0 upgrade progress.

These are the issues affecting us. I'll add more here as they come up.
Please vote them up.

https://typescript.codeplex.com/workitem/1357
https://typescript.codeplex.com/workitem/1325

Any news on the 0.9.x upgrade progress?

Internally we now have 0.9.1 working in a branch. It's quite a big code change that needs some stabilizing, but I expect it to be in an upcoming release.

In my experience, the 0.9.1 compiler still has some stability issues, particularly around references, but it does seem to build everything correctly and the strict type checking works wells. It's also a bit faster than 0.9.0, but still a few times slower than 0.8.x.