meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

TypeScript Fundamentals × Type Narrowing, Guards, and Predicates

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 2 January 2023

⏱️ 23 minutes

🧾️ Download transcript

Summary

In this episode of Syntax, Wes and Scott talk through some TypeScript Fundamentals around type narrowing, type guards, and type predicates. Show Notes 00:24 Welcome 01:40 Rocking predicates 02:54 What is a type in TypeScript? 04:11 Type Narrowing 08:18 Type Guard 16:19 Type Predicates Shameless Plugs Scott: LevelUp Tutorials Wes: Wes Bos Tutorials Tweet us your tasty treats Scott’s Instagram LevelUpTutorials Instagram Wes’ Instagram Wes’ Twitter Wes’ Facebook Scott’s Twitter Make sure to include @SyntaxFM in your tweets

Transcript

Click on a timestamp to play from that location

0:00.0

Monday! Monday! Monday! Open wide dev fans! Get ready! To stuff your face with

0:07.0

JavaScript CSS! Node modules! Barbecue tips! Get workflow! Break dancing! Soft skills!

0:12.0

Web development! The hastiest! The courageous! The tastiest! Web development

0:17.0

treats! Coming in hot! Here is Wes Barakuda! Boss! And Scott El Torro Lugo!

0:24.0

Tolinsky!

0:26.0

Well, come to syntax! On this Monday hasty treat, we're going to be talking about

0:34.0

TypeScript again. We love talking about TypeScript over here. We're going to be talking

0:38.0

about fundamentals in TypeScript, some lesser known, but important features,

0:42.0

things like type narrowing, guards, and predicates. With me, as always, is Wes the

0:50.0

Tony Hawk of TypeScript Boss. Hey, we've had a hell of a morning. We both had, like,

1:01.0

we both had, like, probably three independent issues with internet, audio, and

1:07.0

video streaming. Technical issues. I had a problem with my camera

1:12.0

and my audio, and Scott had a problem with his internet switch and his

1:18.0

video now, which is just- Yeah, now all of this out of my video is just died. After all of that,

1:22.0

we were just like, all right, we're good. We're good to go. And now my video has died.

1:27.0

So, well, I'll get that back online. You know what? It's time for Christmas holidays.

1:32.0

Yeah. I just got a notification from you that says, I'm going to restart my

1:35.0

routers, but that was 15 minutes ago. Something is going on with the internet today.

1:39.0

We are ready for Christmas, but this is one of the last ones we need to record.

1:44.0

And it's kind of an exciting one. It's about TypeScript fundamentals,

1:48.0

type narrowing, typeguards, and type predicates, which is funny.

1:52.0

The first time we tried to record this, Scott was like, I don't think I've ever

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.