Microsoft’s programming language Typescript gets features updates in TypeScript 4.4 update

Jul 27, 2021 | Vanshika Kaushik

Microsoft’s programming language Typescript gets features updates in TypeScript 4.4 update title banner

First prototype of the JavaScript Engine was written in 1995. Post increase in the compilation demand Google released chrome V8 Engine. Chrome V8 Engine is Google’s open source high performance JavaScript engine that boosted browser performance and altered the landscape of client scripting. 

 

Other companies that followed the JS implementation league included Microsoft, Apple and Mozilla. Taking cues from Javascript Microsoft launched Typescript in October 2012. Typescript is Microsoft’s programming language. This superset of Javascript integrates optional static typing. 

 

Microsoft has launched performance updates in Typescript. The beta version of Typescript 4.4 will offer control flow analysis of aliased conditions, faster path normalization, faster path mapping and faster source map generation with prime focus on big output generation. 

 

(Must Check: Creating a Simple JSON Viewer for Your Web Application)


 

TypeScript 4.4 updates

 

  • Extending index signatures for symbols and template string patterns

 

Index signatures refers to specific properties of objects. Index signatures in typescript were limited to string and number keys. Previously index signatures were limited to string and number keys. 

 

Typescript 4.4 will enable index signatures for symbols and template string patterns. Typescript will allow the coder to declare a specific type keyed on arbitrary symbols. Index signatures will now permit union types.

 

  • New Flag : useUnknownInCatchVariables

   

Typescript has introduced a new flag that will change default type of catch clause variables from any to unknown. When the developer checks the code using strict this option will be turned on. Developers can also add annotations to close stricter types. 

 

  • New Flag: exactOptionalPropertyTypes

 

This new flag will specify optional property types interpretation. This function will mean optional property types are supposed to be interpreted the way they are written. 

 

Some other updates include  control flow analysis of aliased conditions , faster declaration emit, faster path normalization, faster path mapping, spelling suggestions for Javascript and inlay hints. 

 

According to InfoWorld TypeScript 4.4 is experimenting with editor support for inlay text, which can display information such as parameter names inline in code.

Tags #Business Analytics
Advertisement