DiscoverCafé con TechWTF are Type Predicates in Typescript?
WTF are Type Predicates in Typescript?

WTF are Type Predicates in Typescript?

Update: 2023-03-08
Share

Description

Have you ever been curious about what Type Predicates are in TypeScript? 


In this episode, I'll show you how to use Type Predicates for type narrowing.  L


earn 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-type-narrowing-techniques-in-typescript  


Make sure to follow me on Twitter: https://twitter.com/matiasfha 


TikTok: https://www.tiktok.com/@matiasfha 


Youtube: https://youtube.com/@matiasfha


And visit my site https://matiashernandez.dev to check more content

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

WTF are Type Predicates in Typescript?

WTF are Type Predicates in Typescript?

Matias Hernández