TypeScript tutorial: Function Overloads

preview_player
Показать описание


Looking for reliable online sources to learn TypeScript to take your JavaScript to the next new level?

Well you’re at the right place here. This TypeScript Fundamental series contains everything necessary to bring you a complete understanding of TypeScript.

Рекомендации по теме
Комментарии
Автор

Why? Seriously, I don't found any reason to use this construction. Ok, of course, it's great to have any kind of features in the language to use, but why do we need this one ))
We can just use TS "or" literal for accepting different types of arguments but anyway it's really hard to understand what actually happens in this piece of code and I'm pretty sure that's this approach violates many programming principles at least three of SOLID.
But anyway, thank you for the video, I been asked about Function Overload on my previous interview and I had nothing to say )

uf