Unions and intersections of object types in TypeScript
Exploring how to use union and intersection types with objects in TypeScript, including discriminated unions for type narrowing.
Exploring how to use union and intersection types with objects in TypeScript, including discriminated unions for type narrowing.
Exploring the TypeScript `never` type, its role as a bottom type, and practical applications like union filtering and exhaustiveness checks.
A guide to TypeScript conditional types, explaining their syntax, usage with examples, and how they work with union and generic types.
Argues against using TypeScript enums, advocating for union types due to code emission and type safety issues.
A technical guide on converting union types to intersection types in TypeScript using conditional types and function type inference.