Typescript: conditional types

preview_player
Показать описание
In this video I explain to you how you can use conditional types and how they are been used within the typescript library. It is always nice to know how thing are been build right? You will also learn how to use the keyword 'infer'.
It is available since typescript 2.8.
Рекомендации по теме
Комментарии
Автор

Wonderful tutorial. I really got it now.

berakoc
Автор

Thanks! I need to do much more research and practice on this wonderful concept. Good video.

buncha
Автор

It very hard to understand, but thanks man!!

natqe
Автор

let aa = processMe(null);
let bb = processMe('abc'); // why they all return string type?

nshen