A Tasty Treats Podcast for Web Developers.

Ask a Potluck Question β†’
Wes Bos

Wes Bos

XL5G3 Full Stack JavaScript Developer. Creator of really good web development courses. BBQ enthusiast.

Scott Tolinski

Scott Tolinski

Web Developer, NX2V1, Creator of Level Up Tuts, Bboy, Robotops Crew and Youtuber

Playing: 560: TypeScript Fundamentals Γ— Satisfies and as const

0:00

LOUDNESS

Jan 9th, 2023

TypeScript Fundamentals Γ— Satisfies and as const

πŸ‘‡ Download Show✏️ Edit Show Notes

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