5 ms·
> If you so much as have a single @ts-ignore or "any" in your code base, then all bets are off on correct behavior. I've been writing a ton of TS since 2016 an
by jdxcode 6y ago
> If you so much as have a single @ts-ignore or "any" in your code base, then all bets are off on correct behavior.
I've been writing a ton of TS since 2016 and in most of those projects we've had liberal use of 'any' or even incorrect types (!). It's still far better than vanilla JS. The argument that "it doesn't work all the time therefore it's worse" makes no sense to me.
Ultimately the issues you're talking about make logical sense academically, but nobody has ever raised them as problems in the real world that I've ever encountered.
Full typing makes my job easy, but a little bit of typing is still better (in most cases) than no typing at all. There is an argument to be made about simplicity for small codebases, but those aren't the ones I'm talking about.