TypeScript: Narrow types in catch clauses
Explains why TypeScript restricts catch clause variable types and demonstrates the correct way to narrow error types using checks.
Explains why TypeScript restricts catch clause variable types and demonstrates the correct way to narrow error types using checks.
A guide to different TypeScript function syntaxes, explaining when to use ':' vs '=>' for return types with practical examples.
A guide to writing TypeScript types that require minimal maintenance by leveraging type inference and utility types.
An opinionated guide on improving TypeScript code readability by using descriptive names for generic type parameters instead of single letters.
A technical guide on creating a TypeScript-wrapped React useState hook for implementing a dark mode feature in applications.
A guide to implementing function overloads in TypeScript, using a practical example of a function that returns a Promise or void.
A guide on adding TypeScript types to the fetch API, using a GraphQL Pokemon API example from EpicReact.dev workshops.
Opinionated guide on avoiding traditional class-based OOP patterns in TypeScript in favor of simpler module-based approaches.
Argues for using TypeScript type aliases over interfaces to avoid declaration merging issues and improve code safety.
Argues against using TypeScript enums, advocating for union types due to code emission and type safety issues.
The author announces their new book 'TypeScript in 50 Lessons', a 450-page guide focused on the TypeScript type system.
An explanation of the 'this' keyword in JavaScript and TypeScript, covering its behavior in functions, event listeners, and binding methods.
A guide to using TypeScript with native ECMAScript modules, covering configuration and importing from CDNs.
A developer explains their reasons for avoiding the React.FC type in TypeScript+React projects, citing issues with function typing and implicit children.
A guide to common React component patterns using TypeScript, focusing on function components, props, and type definitions.
Explains how to add TypeScript types for new DOM APIs like ResizeObserver by augmenting global and lib.dom.d.ts.
A guide to setting up a Vite project with Preact and TypeScript, including configuration steps and setup tips.
A technical guide on converting union types to intersection types in TypeScript using conditional types and function type inference.
A tutorial on using the Oak framework to build backend web applications in Deno, including setup and basic middleware.
A preview of Variadic Tuple Types, a new feature in the upcoming TypeScript 4.0 release, with examples and use cases.