DEV Community

Discussion on: Method overloading in TypeScript

Collapse
 
artoodeeto profile image
aRtoo

Yow my dude I was thinking the same thing like why support this when you can just check the params. It would be nice if they implement like java but I guess its too late now.

Collapse
 
tomekbuszewski profile image
Tomek Buszewski

Hey aRtoo,

I guess it's not possible to implement it like in Java, since it would have to add tremendous amount of code on itself and do the ifs on its own.