meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

TypeScript Fundamentals × Satisfies and as const

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 9 January 2023

⏱️ 23 minutes

🧾️ Download transcript

Summary

In this Hasty Treat, Scott and Wes talk about Satisfies and as const. Show Notes 00:25 Welcome 02:04 Xmas recap Peloton 04:09 Satisfies and as const 06:16 What is const? 10:30 Helping with currency 12:44 Bos monster server update 14:13 Satisfies export const currencies = { USD: 'US Dollars', CAD: 'Canadian Dollar', EUR: 'Euro', } as const; export type Currency = typeof currencies; export type CurrencyCode = keyof Currency; 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 Carrazius! 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

Welcome to syntax and this Monday hasty treat. We're going to be talking about new

0:33.0

TypeScript features that really give us a little bit more control and ability to

0:40.0

make sure that our code errors when it's supposed to and let's us do the things

0:44.0

that we need to do. We're going to be talking about the new property of

0:48.0

satisfies as well as the as const technique to be able to really just make sure

0:55.0

our data is typed the way that we want it to be typed. My name is Scott

1:00.0

Tolinsky. I'm a developer and I am from Denver and with me, as always, is the

1:08.0

West Boss. The West, the West. No, you're east of me. I was trying to make a joke

1:13.0

there, but no, you're the West. Yeah, the West. So how's it going, West? This is our

1:19.0

first episode of the new year at the time of recording. How are you feeling?

1:23.0

Yeah, I'm feeling good. I had a fantastic time off and it's good to be back

1:28.0

a little rusty. We are releasing this one a little bit late. So apologies. Both

1:34.0

to our editor, Chris, who will probably be dropping everything to now I'm just joking

1:41.0

it. Yeah, apologies to Chris as well as everyone who missed it. We're just getting

1:45.0

lots of tweets this morning being like, where's the Monday episode? We thought we were

1:49.0

one more week ahead than we actually were. So goof that up on on our end.

1:53.0

Yeah, it is our fault. Western eyes fault. No one else's fault.

...

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.