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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 toany
so that it compiles.Uhh...either you have a modeling problem in your database, or a modeling problem in your TS interfaces.