Hacker News new | past | comments | ask | show | jobs | submit login

I've personally found JSDoc gets me what I want out of TypeScript without any compiling or features that don't actually exists in the language (I'm glaring at you enums). Ensuring the documentation is correct ensures the types are correct. You loose some nice-to-haves but to me not having to compile my code or deal with that variety of tooling is a huge plus. I can facilitate folks who like TypeScript by exporting types from the same JSDocs.



Have you ever done a wide refactor of a type or public method?

It's bliss in TypeScript. Nearly impossible in JS.

----

To me the value prop of Typescript isn't the initial writing, it's the maintainability. Having good types makes it significantly easier to maintain and refactor.


I have, I didn’t have a bad time, but YMMV.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: