logoalt Hacker News

xiaodaitoday at 3:11 AM2 repliesview on HN

how can you compile it if javascript is a valid subset of typescript? confused.


Replies

panzitoday at 3:39 AM

Either it is only accepting a subset of TypeScript, or it is still interpreting the parts that don't have enough types. Given other comments here it sounds like the later.

CarpeNecopinustoday at 7:05 AM

What it can actually compile is a subset of well-behaved typescript. For anything else it bails out and asks you to ship a JS engine (albeit, not NodeJS) again.