Hacker News new | ask | show | jobs
by brokenparser 4467 days ago
The language is nice, but the compiler uses its own lib.d.ts which has all sorts of definitions for browsers and even proprietary MSIE ones. This doesn't make any sense when using TypeScript in any other context (like Gjs, NodeJS, Rhino, Seed, etc.). TypeScript shouldn't assume a browser by default, or at least provide an option for compiling without lib.d.ts.
1 comments

$ tsc --nolib
Ooh, undocumented features! How nice, thanks =]