Testing types in TypeScript
Explores how to test complex TypeScript types using type-level assertions and the asserttt npm package, including implementation details.
Explores how to test complex TypeScript types using type-level assertions and the asserttt npm package, including implementation details.
A guide to TypeScript conditional types, explaining their syntax, usage with examples, and how they work with union and generic types.
A guide to TypeScript mapped types, explaining their syntax and use cases for transforming objects and tuples.
Explains how to use TypeScript's 'infer' keyword to extract parts of compound types, with examples for arrays, functions, and built-in utilities.
A preview of Variadic Tuple Types, a new feature in the upcoming TypeScript 4.0 release, with examples and use cases.
Explains how to use TypeScript's mapped and conditional types to create precise typings for DOM factory functions like document.createElement.