Café con Tech
WTF are Type Predicates in Typescript?

Episode 6 · Season 4

WTF are Type Predicates in Typescript?

Café con Tech

4:14

About this episode

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

More from Café con Tech

In this episode, I'm going to discuss whether or not you should learn Typescript, or better, what parts of Typescript you should learn. Typescript is gaining popularity. If you're thinking about learn…

4m

En este episodio una nueva opinión o reclamo, esta vez sobre Typescript, qué es, por que usarlo y por que gente lo utiliza mal. Suscribete a mi newsletter --- Encuéntrame en twitter, en mi repositorio…

11m

GraphQL es un lenguaje de consulta (query language) que ha sido visto como una mejora en eficiciencia, flexibilidad y potencial sobre formas previas de implementar una API. ¿Por qué querrías utilizarl…

14m

Nueva temporada, nuevo formato. Back to basics. En este nuevo episodio te cuento sobre que es typescript, ventajas y desventajas y por que podrías querer utilizarlo. Links Estudio: To Type or Not to T…

9m