TypeScript 5.3 has been released with new features such as import attributes, stable support for resolution-mode in import types, narrowing based on conditions in switch statements, and more. It also includes optimizations such as skipping JSDoc parsing and comparing non-normalized intersections. The tsserverlibrary.js and typescript.js bundles have been consolidated, resulting in a reduction in package size.
Table of contents
Announcing TypeScript 5.3 RCWhat’s New Since the Beta?Import AttributesStable Support resolution-mode in Import Typesresolution-mode Supported in All Module Modesswitch (true) NarrowingNarrowing On Comparisons to Booleansinstanceof Narrowing Through Symbol.hasInstanceChecks for super Property Accesses on Instance FieldsInteractive Inlay Hints for TypesSettings to Prefer type Auto-ImportsOptimizations by Skipping JSDoc ParsingOptimizations by Comparing Non-Normalized IntersectionsConsolidation Between tsserverlibrary.js and typescript.jsBreaking Changes and Correctness ImprovementsWhat’s Next?Sort: