Skip to main content

Syntax Podcast

TypeScript Fundamentals Γ— Satisfies and as const

Wes Bos Host

Scott Tolinski Host

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

Share