TypeScript 5.5 रिलीज़
(devblogs.microsoft.com)- Inferred Type Predicates: TypeScript अब कुछ खास शर्तों के तहत यह infer कर सकता है कि कोई function Type Predicates return करता है
- Constant Indexed Accesses के लिए control flow narrowing: जब
objऔरkeyconstant हों, तबobj[key]फ़ॉर्म वाले expression को narrow किया जा सकता है - JSDoc
@importटैग: मौजूदाimport(...)की तुलना में सिर्फ type import करने के लिए अधिक आसान नया JSDoc टैग - Regular expression syntax checking: regular expression literal की syntax errors पकड़ने की सुविधा जोड़ी गई
- नए ECMAScript
Setmethods का 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.jsondependency 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 का उपयोग:
importstatement के ज़रिएtypescriptpackage की API का उपयोग संभव transpileDeclarationAPI: declaration file generation के लिए नया API- ध्यान देने योग्य behavioral changes
- TypeScript 5.0 में deprecated की गई सुविधाएँ disabled
lib.d.tschanges की वजह से type checking पर असर- decorator syntax checking और सख्त हुई
undefinedtype alias अब अनुमति नहीं- reference directive declaration emit को सरल बनाया गया
अभी कोई टिप्पणी नहीं है.