Inference vs type definition
(Beginner question but I think I am not breaking the rules!)
Hey there! I am getting into typescript bit by bit, and I am finding myself writting more types than expected.
I just saw a Theo video talking about type inference, and referring to the habit of separating files as "writting code as if we are still in Javaland" (or something like that!)
I am really liking some things about ts: 1) it makes me REALLY understand what's going on, 2) When I don't, I have better help from the editor to dig deeper, 3) the documentation is much better.
But it some times get frustrating.
I have watched some "totalTypescript" videos. Those are good, but that's not "real life ts", where we have more complex types, apis, db interactions, etc...
Where can I go see how people that use typescript correctly do it? I just want to be able to write 100% type safe code without bloating my codee with types (and, judging Theo's video, that seems to be possible - but not common!)
Hey there! I am getting into typescript bit by bit, and I am finding myself writting more types than expected.
I just saw a Theo video talking about type inference, and referring to the habit of separating files as "writting code as if we are still in Javaland" (or something like that!)
I am really liking some things about ts: 1) it makes me REALLY understand what's going on, 2) When I don't, I have better help from the editor to dig deeper, 3) the documentation is much better.
But it some times get frustrating.
I have watched some "totalTypescript" videos. Those are good, but that's not "real life ts", where we have more complex types, apis, db interactions, etc...
Where can I go see how people that use typescript correctly do it? I just want to be able to write 100% type safe code without bloating my codee with types (and, judging Theo's video, that seems to be possible - but not common!)

Solution
TotalTS vids are indeed real life. In the sense that they refer to specific pain points that you come across. But u wont really find it usefu becuase you havent met it yourself