WTF are Type Predicates Functions in Typescript?

preview_player
Показать описание
Have you ever been curious about what Type Predicates are in TypeScript? In this video, I'll show you how to use Type Predicates for type narrowing.

Learn about the pros and cons of using Type Predicates, but most important, let's review the big RISK of using predicates for type narrowing and how you can LIE to Typescript

Chapters

00:00 Welcome back
00:21 Explaining Type Narrowing
00:53 Type Predicate Functions
01:12 Pros and Cons
01:48 Risks & Downsides
03:02 Alternative Techniques
03:50 Video Summary
04:00 Like & Subscribe

Make sure to follow me on

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

Nice video, well explained.
What is your vscode theme?

eliotfagnon
Автор

Are you planning a a "Typescript Type Level Programming" course? I would be your first subscriber!

hansschenker
welcome to shbcf.ru