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.
A developer details their personal local development environment setup, including IDEs, tools, utilities, and cloud services they use daily.
An overview of TypeScript for JavaScript developers, explaining its syntax, how it runs, and IDE benefits.
How to use Node.js's --watch flag to create simple, interactive TypeScript playgrounds for quick code experimentation.
A tutorial on building a simple interactive command-line interface (CLI) application using Node.js and TypeScript.
Explores how to test complex TypeScript types using type-level assertions and the asserttt npm package, including implementation details.
Explores how conditional types in TypeScript constrain type variables in unexpected ways, going beyond simple type narrowing.
Exploring the TypeScript `never` type, its role as a bottom type, and practical applications like union filtering and exhaustiveness checks.
A step-by-step guide to setting up a TypeScript project in Node.js, from initialization to configuration.
Explains how TypeScript handles JavaScript symbols at the type level, covering unique symbols, type inference, and common pitfalls.
Compares TypeScript's T[] and Array<T> array notations, explaining their equivalence and the author's preference for Array<T>.
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 end-to-end testing fundamentals and demonstrates how to implement automated tests using the Playwright framework.
Explains how to use TypeScript's 'infer' keyword to extract parts of compound types, with examples for arrays, functions, and built-in utilities.
TypeDoc's new {@includeCode} tag allows testing code examples in documentation by referencing specific regions from external test files.
Explains TypeScript's `satisfies` operator, showing how it checks type compatibility without widening inferred types, with examples.
A guide to improving TypeScript/MongoDB testing using Typegoose for type-safe models and mongodb-memory-server for isolated, in-memory database tests.
Explains how to use TypeScript's `readonly` keyword to create immutable properties and types, with examples and compiler behavior.
A comprehensive guide to understanding, using, and creating TypeScript decorators to improve code structure, reusability, and maintainability.