• Inferred Type Predicates: TypeScript अब कुछ खास शर्तों के तहत यह infer कर सकता है कि कोई function Type Predicates return करता है
  • Constant Indexed Accesses के लिए control flow narrowing: जब obj और key constant हों, तब obj[key] फ़ॉर्म वाले expression को narrow किया जा सकता है
  • JSDoc @import टैग: मौजूदा import(...) की तुलना में सिर्फ type import करने के लिए अधिक आसान नया JSDoc टैग
  • Regular expression syntax checking: regular expression literal की syntax errors पकड़ने की सुविधा जोड़ी गई
  • नए ECMAScript Set methods का support: union, intersection जैसे नए Set methods के type declarations
  • Isolated Declarations: एक ऐसा option जो declaration (.d.ts) files को type checking के बिना per-file basis पर generate करने देता है
  • Configuration files के लिए ${configDir} template variable: settings file में relative path की जगह इस्तेमाल किया जा सकने वाला variable
  • package.json dependency references: declaration file generation के दौरान dependency module reference errors में सुधार
  • Editor और Watch-Mode stability improvements: editor में error updates जैसी चीज़ों की reliability बेहतर हुई
  • Performance और size optimization: language service, API, control flow graph आदि कई पहलुओं में performance improvements
  • ECMAScript modules में API का उपयोग: import statement के ज़रिए typescript package की API का उपयोग संभव
  • transpileDeclaration API: declaration file generation के लिए नया API
  • ध्यान देने योग्य behavioral changes
    • TypeScript 5.0 में deprecated की गई सुविधाएँ disabled
    • lib.d.ts changes की वजह से type checking पर असर
    • decorator syntax checking और सख्त हुई
    • undefined type alias अब अनुमति नहीं
    • reference directive declaration emit को सरल बनाया गया

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.