TypeScript Deep Dive - Generics | JSer - Front-End Interview questions

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

The most powerful feature of TypeScript - Generic.
Very important concept, and need better understanding.

To me, generic is just a template or a regular expression, that TS uses to check agains your code, it doesn't check completeness but just check if there are logic problems. of your type definitions.

Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode & BFE.dev. If you are interested, maybe we can learn together.
Рекомендации по теме
Комментарии
Автор

Once again interesting video.
But I'd be interested to know how to specify the return type of the function at 18:00. Any idea?

faruzzy