Never in Conditional Types // Advanced TypeScript Hack

preview_player
Показать описание
In this advanced TypeScript tutorial we look at how unions gets distributed in conditional types. We also cover how never gets removed in unions.

And we wrap up by using these two facts to create extremely powerful conditional type utilities.

🚥 Professional Courses

This lesson assumes you are familiar with the following:

👇 SUBSCRIBE for MORE 👇

**Feel Free To Read This Lot**

I'm Basarat, That TypeScript Guy and I love helping developers. More about me:

Microsoft MVP for TypeScript
150K contributions on Stackoverflow. Top Contributor for TypeScript.
Book Author : Beginning NodeJS
Book Author : TypeScript Deep Dive
Creator of multiple hot ✨ed Github Open Source projects

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

Man, really can't thank you enough. The way you walked us through baby steps first and showing that never can be assigned to any other type is what allowed me to understand how it's used in conditionals 🙌🏻

hectorserrano
Автор

How this has only 1, 5k views? Great, great video thank you

manuelcasares
Автор

Great channel, really useful, although I have been using TypeScript for a while, I still learning new stuff everyday watching this :) But I just wonder how do you type so fast. I understand you use fast playback, but how do you keep it at constant speed? Looks like it takes exactly same time to type each of the characters...

LapeKale
Автор

What is the mechanism when T is just type alias:
type T={koko:string}; //?
Best regards and full respect.
Dimitar

dimitargetsov