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.
Explains how to use TypeScript mapped types to create new types from existing ones, avoiding manual property definitions.
A guide to defining common prop types like primitives, objects, arrays, unions, and functions in TypeScript for React components.
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.
A quick overview of PHP 8's major new features, including attributes, union types, JIT, and the match expression.