Syntax - Tasty Web Development Treats

TypeScript Fundamentals × Satisfies and as const

Share this episode
Anyone with this link can open it.
Share Link
Start at 0:00

This episode isn’t summarized yet

Create a free account and summarize it. In a few minutes you’ll have the key takeaways and a section-by-section summary.

Show notes

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

Couldn't load the audio. A blocker may be stopping the show's tracking links. Open the file