Learn TypeScript cursor-rules for AI development. Covers best practices, JSDoc, structure. Different...
...
TypeScript announced a full rewrite of TypeScript in Go. In testing, this rewrite has achieved a 10x...

TypeScript 5.8's new erasableSyntaxOnly flag enforces pure type annotations by disabling enums, name...
TypeScript is coming to Node 23. Let's break down what that means....

Learn how to extract the type of an array element in TypeScript using the powerful `Array[number]` t...
Learn how to publish a package to npm with a complete setup including, TypeScript, Prettier, Vitest,...
Enums in TypeScript can be confusing, with differences between numeric and string enums causing unex...
Is TypeScript just a linter? No, but yes....
It's a massive ship day. We're launching a free TypeScript book, new course, giveaway, price cut, an...
Learn why the order you specify object properties in TypeScript matters and how it can affect type i...
Learn how to use `corepack` to configure package managers in Node.js projects, ensuring you always u...

Learn TypeScript by setting up a pro environment, using advanced IDE features, and mastering type an...
Learn how to strongly type process.env in TypeScript by either augmenting global type or validating ...
Discover when it's appropriate to use TypeScript's `any` type despite its risks. Learn about legitim...
Learn why TypeScript's types don't exist at runtime. Discover how TypeScript compiles down to JavaSc...
Improve React TypeScript performance by replacing type & with interface extends. Boost IDE and tsc s...
In this book teaser, we discuss deriving vs decoupling your types: when building relationships betwe...
Learn how TypeScript's new utility type, NoInfer, can improve inference behavior by controlling wher...
Learn how to set up TypeScript to bundle a Node app using pnpm, Node.js, TypeScript, and ES Modules ...
TypeScript 5.5 introduces type predicate inference from function bodies, simplifying type narrowing ...
Learn why it's not possible to restrict the type of children in React components with TypeScript....
Learn how to make TypeScript functions more flexible and type-safe by using type parameters instead ...
Learn how to handle errors when using Array.reduce to transform arrays into objects in TypeScript. F...
Whether you use let or const in TypeScript affects whether or not their values can be changed, and h...
Learn how to use typescript generics to pass types in constructs like Array and Set....

In TypeScript, the `as never` type assertion is occasionally needed when dealing with unions of func...
Using the method shorthand syntax for function annotations in TypeScript can result in runtime error...
Learn about the limitations of React's `forwardRef` TypeScript and discover a solution to enable inf...

TypeScript boosts productivity but faces pitfalls like type mismatches, null values, & puzzling erro...
TypeScript 5.3 introduces relaxed rules around readonly arrays and improvements in const type parame...
Understand how Type Predicates work in TypeScript, using an example of filtering a mixed array of el...
Learn how to provide a TypeScript playground when asking for help with your TypeScript questions, ma...
Learn how to work with events in React and TypeScript, from onClick to onSubmit....
A step-by-step guide on setting up ESBuild to bundle a Node application....
When using '--moduleResolution' with the option 'nodenext', it is necessary to add explicit file ext...
Learn how to add TypeScript to your existing React project in a few simple steps....
Learn the essential TypeScript configuration options and create a concise tsconfig.json file for you...
Big projects like Svelte and Drizzle are not abandoning TypeScript, despite some recent claims....
Learn different ways to pass a component as a prop in React: passing JSX, using React.ComponentType,...
Learn about TypeScript performance and how it affects code type-checking speed, autocomplete, and bu...
When typing React props in a TypeScript app, using interfaces is recommended, especially when dealin...
Learn TypeScript in 2023 with this step-by-step guide. Understand the basics, essential types, union...
Learn how to manually assign types to JSON imports in TypeScript by creating `.d.json.ts` files, whi...
TypeScript 5.3 is in the works, with potential features including Import Attributes, throw expressio...
When declaring array types in TypeScript, you can choose between `Array` and `T[]`. Both are identic...
The `satisfies` operator in TypeScript allows for type annotations without sacrificing inference. He...
Learn how to use the `Extract` helper in TypeScript to extract specific members from a discriminated...
If you receive a "Cannot redeclare block-scoped variable 'name'" error in TypeScript, it can be reso...
Learn the key differences between interfaces and type aliases in TypeScript, including their use cas...
In TypeScript, dot notation cannot be used to access type properties, but indexed access types provi...
Using useRef with native elements in React can be confusing, but ElementRef provides an easier solut...
Learn how to fix the "Cannot use JSX unless the --jsx flag is provided" error in TypeScript by updat...
Understanding generics can be challenging because the term is overloaded. Instead, use the terms "ty...
What you think of as "generics" in TypeScript are actually three different patterns....
Iterating over object keys in TypeScript can be challenging. One option is casting to keyof typeof t...
Any `any` is a cause for concern because it disables type checking on the thing it's assigned to. Th...
Matt Pocock shares his advice for working on TypeScript apps where security is critical....
This article discusses four of the most important patterns to know and use: Branded types, Globals, ...
The optional chaining for assignments proposal has reached Stage 1, allowing assignment to possibly ...
Expert-level knowledge for typing your React apps with TypeScript....
TypeScript introduces type argument placeholders in version 5.2, which helps with partial inference ...
Learn why {} in TypeScript doesn't represent an empty object, and how to use the Record type to repr...
TypeScript 5.2 introduces 'using', a keyword that disposes anything with a `Symbol.dispose` function...
Learn how to retrieve object keys where the values are of a specific type in TypeScript using an imm...
Learn how to fix TypeScript errors regarding the 'Window' interface. Choose between three solutions ...
React.FC is now perfectly fine to use in TypeScript 5.1 and React 18. It no longer implicitly includ...
Learn about JSX.IntrinsicElements in TypeScript - the global type that defines native JSX elements a...
Find out why this error occurs and learn how to fix it....
Learn the differences between React.ReactNode and JSX.Element in TypeScript when working with React....
Since I first got into advanced TypeScript, I've been in love with a particular pattern....
There are three rules to keep in mind when deciding where to put types in your application code....
Discover the power of ComponentProps in React and TypeScript....
Get productive building applications with React and TypeScript with our interactive guide on React's...
Testing types is a crucial aspect of developing libraries in TypeScript. In this article, we explore...












