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.