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
Link to the article: https://egghead.io/blog/3-effective-t...
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
Twitter: / matiasfha
TikTok: / matiasfha
And visit my site https://matiashernandez.dev to check more content.