Get YouTube subscribers that watch and like your videos
Get Free YouTube Subscribers, Views and Likes

The Never Type Explained: Everything You Need To Know - Advanced TypeScript

Follow
Typed Rocks

Code: https://github.com/typedrocks/typesc...
mapped types:    • Mapped Types Explained: Keep Your Typ...  

The never type is something which many TypeScript developers will only ever encounter in their error messages but have never used themselves before.
So let's figure out how we can use this type to its full potential and write some really powerful code with it to make our code more robust and typesafe.

0:00 Intro
0:15 What is the never type?
1:30 never as return
3:10 narrow types
5:00 exhaustive switches/ifelse
8:40 this OR that
11:06 filter properties
12:57 check for never type using IsNever
14:24 Outro

posted by danielle75474f3