TypeScript Fundamentals × Satisfies and as const - podcast episode cover

TypeScript Fundamentals × Satisfies and as const

Jan 09, 202323 min
--:--
--:--
Listen in podcast apps:
Metacast
Spotify
Youtube
RSS

Episode description

In this Hasty Treat, Scott and Wes talk about Satisfies and as const.

Show Notes 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
For the best experience, listen in Metacast app for iOS or Android
Open in Metacast
TypeScript Fundamentals × Satisfies and as const | Syntax - Tasty Web Development Treats podcast - Listen or read transcript on Metacast