Re:Tips for Performant TypeScript
by FlorianRappl on Tuesday November 24, 2020 @11:06AM
(#25199656)
This is over simplified. Using TypeScript you should specify all the types required to have your code base fully qualified - not more. In the example above having a fully typed `otherFunc` would directly specify the type on `func`. If you (automatically) refactor `otherFunc` the type naturally flows and you don't end up with (unnecessary) modifications on other spots. Use type inference when possible, but don't over do it.
[ Parent
| on HN ]
There are no comments on this comment yet.