5 ms·
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 havi
by FlorianRappl 6y ago
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.