WATCH NEXT: Typescript Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/aqHUlqJ-gctsf7csi=2gqvcpDDDDRorNpX
@nick.h7566 Жыл бұрын
Honestly if I wanted to save space in the params I think I'd just add a type property above and apply within there what I expect the function can use or return. But damn I love your videos!
@MonsterlessonsAcademy Жыл бұрын
Thank you!
@ivelintodorov6075 Жыл бұрын
Good to know, but not really usable. Even if you have the overloads you still have to implicitly check what is the parameter type.
@MonsterlessonsAcademy Жыл бұрын
Agreed!
@juanmacias5922 Жыл бұрын
I'd probably just use the non-overloading version, I think it looks simpler lol
@MonsterlessonsAcademy Жыл бұрын
Exactly. Most of the time I don't want to see this.