node-ts2hx
node-ts2hx copied to clipboard
ts code in readme.md that doesn't compile
What version of the typescript compiler are you using that lets you write these?
interface integer extends number {}
class FooClass extends BarClass, BazClass implements QuxInterface { }
In tsc 1.5.* and 1.6.2, and if I remember correctly even some version of 1.4, neither of those compile. The errors given by tsc 1.6.2 are: Error:(6, 23) TS2304: Cannot find name 'number'. Error:(9, 35) TS1174: Classes can only extend a single class.
Um, the readme on NPM is indeed not up to date (it should be correct on the github page).
That said, I don't actively maintain this project as it was mainly an experiment. If I recall correctly I tested with TypeScript 1.2, but not more recent version.
@jeremyfa this is a lovely experiment, I am going to need this in a project and I am wondering if you could add support for recent version of TS and Haxe?
As stated in the readme, I don't maintain this library for a while already.
Ok seen