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.