node-ts2hx icon indicating copy to clipboard operation
node-ts2hx copied to clipboard

ts code in readme.md that doesn't compile

Open DustinWehr opened this issue 9 years ago • 4 comments

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.

DustinWehr avatar Dec 05 '15 04:12 DustinWehr

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 avatar Dec 05 '15 22:12 jeremyfa

@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?

darmie avatar Jul 08 '17 13:07 darmie

As stated in the readme, I don't maintain this library for a while already.

jeremyfa avatar Jul 08 '17 18:07 jeremyfa

Ok seen

darmie avatar Jul 26 '17 14:07 darmie