3 ms·
Wanted to note that you can do function signature overloading in typescript- you just have to have a single function at the bottom that encapsulates all the dif
by brundolf 4y ago
Wanted to note that you can do function signature overloading in typescript- you just have to have a single function at the bottom that encapsulates all the different signatures and then branches its logic dynamically based on the values it's given: https://stackoverflow.com/questions/13212625/typescript-function-overloading/13212871#13212871 https://stackoverflow.com/questions/13212625/typescript-func...
I actually think this is a super cool and elegant way to do overloading