|
|
|
|
|
by keawade
1560 days ago
|
|
I disagree that TypeScript comes with only a marginal upside. In my experience TypeScript projects are much more approachable for contributors. For example, I once was debugging an issue in a JS framework and while I knew what was wrong and where I could fix it I didn’t have any idea what existing tools I had available in that context to fix it. Having type definitions would have made that work much simpler by increasing the accessibility of the code base. It’s experiences like this that have convinced me that if I’m writing code that any one will possibly read or need to modify later (including if it is just me) then I should be writing TypeScript instead of JavaScript. Or, more generally, that it should be typed. |
|