Hacker News new | ask | show | jobs
by theprotocol 3580 days ago
I wish it were easier to gradually convert a codebase from JS into TS. You'd think it'd be straightforward, what with the claim that TS is a superset of JS, but the flag that makes the TS compiler accept regular JS files was only added in 1.8, and mixing and matching is still much clumsier than I'd like.

TS is also a bit too strict about requiring d.ts files for everything.

I've been on the fence about switching to TS in my project, but it's a bit passive aggressive towards plain JS code.