Hacker News new | ask | show | jobs
by tobr 676 days ago
> If you like static typing, you’ll want to use TypeScript. It’s more work to set up, but it catches many bugs, especially subtle ones where JavaScript’s semantics are not intuitive.

It’s worth looking at JSDoc as an alternative to regular TypeScript. No compiler to set up, and you’re restricted in a good way - less likely to get over-engineered types.

1 comments

I find writing it too hard compared to TS, but in terms of functionality it's pretty good.