4 ms·
Yay for #1, lol! TS is great but the way to adopt it is only when you have your own need. The best use case is making an interface for a function of your own. T
by dtagames 3y ago
Yay for #1, lol! TS is great but the way to adopt it is only when you have your own need. The best use case is making an interface for a function of your own. That way, you can be sure when you write calls to that function, the arguments are what it wants. From there, you'll see other places where tightening-up the types can be of use to you -- but the secret is to only use it where it is of obvious benefit. It's all fake and goes away at build time anyway!