9 karma · joined Nov 7, 2021 (5y ago) · 5 submissions
comment 4y ago · link · parent
comment 5y ago · link · parent
Once you're proficient in TS, adding type annotations really doesn't take much time, and it helps save time testing by letting the compiler "test" your code before it even runs.
comment 5y ago · link · parent
Just as an aside, the amount of bugs I've found just by refactoring to TS is incredible, the compiler has made me aware of edge cases that I hadn't thought of. Just adding types to old code and getting red squiggles telling me why it won't compile has taught me quite a lot about random aspects of JS that I've never considered.