u/it-birdsin r/typescript • Recommends
On “Are type interfaces nessecary?”
I also wrote a lot of interfaces in the past and even typed the output of each function. But at some point this is too much unnecessary overhead.
I started to rely more on the typescript type inference and this reduced the amount of refactoring needed, if a code change came along.
Here a good reference that describes what I aim for.
link to this video
> Theo has strong opinions and you should not take all he says for the silver bullet, but the things he says are always interesting.
Also (because I have seen it in other comments) I do still enforce strong typings in my projects. "any" is not allowed, but a few edge cases where you cannot get rid of it (mapped types).
Furthermore, I can only agree…