DEV Community

Discussion on: The TypeScript Experience

Collapse
 
almaaaaa profile image
vinz243 • Edited

Some points are fair enough (Sometimes spend an hour just to appease the type system, The syntax can get verbose and unreadable) but other are not very well thought.

Not enough libraries come with types

This is utterly false. Nowadays every popular one has typings, and even less popular have them now. And tbf should you be using unknown and obscure packages on npm?

I don't need to have a step before running JavaScript code on Node.js, why would I add one?

This is just a useless point, because this is the point that is being discussed. Imagine : Should we ban x thing (because y) ? No I don't think so because I don't want to ban something, so why should we ban it?

Does not catch bugs

It does... More often than not. It catches most mispells and typos, and inattention issues. Which is a lot (and the most painful part of vanilla js to me)

It has flavors. I have seen Array or string[]

Comparing it to vanilla js ??

Too many different configurations.

If it wasn't the case then they would be complaining about the even greater lack of flexibility.

No real guarantees, just assurances

what does this blanket statement even means ?

It seems to me that these people want their cake and eat it too. Sure it's not perfect, and it's not THE solution that will eliminate all pain from frontend dev. It has its pros and cons as does every tool.