by dkempner · 6y ago · 0 comments
Bonus if my previous usage was incorrect and I didn't notice and I end up copying that same mistake again and again!
TypeScript saves me probably 15+ minutes a day of just switching back and forth looking up what parameters are needed.
It is a one time tax to make everything I do more pleasant.
The commenter you are replying to is talking about a function of fixed-arity, with a config object with required props. Which props are required? A Typed language will tell you immediately “for free”.