DEV Community

Discussion on: TypeScript is a waste of time. Change my mind.

Collapse
 
aerorezo profile image
Aerowyne Rezo

Typed JS is still... untyped.

I actually agree with this point, however not for any of your conjecture. There is one thing that TS makes significantly more difficult and that's building an API that is also expected be used by JS developers. TS spends an awful lot of time fighting you here. Even though you know that the input is likely be null, undefined, of the wrong type its hard to write guards for these cases, and writing unit tests requires everything be cast to any so that it compiles.

I found that my interfaces file for my Sequelize database models was over 5000 lines long on its own!

Uhh...either you have a modeling problem in your database, or a modeling problem in your TS interfaces.