TypeScript 5.3 introduces changes in type narrowing and performance, prioritizing developer experience. The improvements include better narrowing in switch statements and true/false comparisons, narrowed Symbol.hasInstance checks, improved super property access checks, improved compile times in –watch mode, consolidation of
•4m read time• From angular.love
Table of contents
switch(true) narrowingTrue/False direct comparison narrowingNarrowed Symbol.hasInstance checksSuper property access checksSkipping JSDoc parsingtsserverlibrary.js and typescript.js consolidationReplacing import assertions with import attributesSupport for resolution-mode in import typesIn-editor value type interactionsSummary1 Comment
Sort: