by throwaway92921 · 3y ago · 0 comments
I find it mildly useful as a form of documentation - and the intellisense is nice, but otherwise find it cumbersome to use.
In general - while I’ve experienced some issues with types in JS, it usually isn’t the root cause of most bugs I encounter.
Maybe if you already have learned TS, otherwise there is a huge cost to learning it.
And when it does not become trivial, it is an indicator it would be borderline impossible without it.
After a rather extensive refactor I once did the compiler gave me over 4.000 typescript errors. It would be a tremendous effort for all of these to be identified and ironed out, probably taking years because many issues were very circumstantial.