TypeScript Enums or Union Types?

Which of these two ways to define the type of a variable as one of multiple possibilities is better? Let’s have a look at the trade-offs. Read more

Similar

TypeScript 5.0 Beta

Today we’re excited to announce our beta release of TypeScript 5.0! This release brings many new features, while aiming to make TypeScript, smaller, simpler, and faster. We’ve implemented the new decorators standard, functionality to better support ESM pr... (more…)

Read more »