Blog Logo
TAGS

TypeScript 4.8: Better Intersections Union Types

TypeScript 4.8 is a planned upgrade to Microsoft’s strongly typed JavaScript variant. It brings improvements in correctness, consistency, and fixes to file watching on Linux and macOS. The release candidate (RC) adds support for excluding files in auto imports. Changes in TypeScript 4.8 allow for sensible improvements in control flow and type narrowing, as well as optimizations to speed up scenarios around –-watch and --incremental. Inference from binding patterns has been improved. TypeScript 4.8 follows the May 2022 release of TypeScript 4.7, which brought innovations such as ECMAScript module (ESM) support for Node.js 16.