Microsoft recently released the latest version of TypeScript, 4.1. It’s a language that builds on JavaScript by adding syntax for type declarations and annotations. The typescript syntax can be used by the TypeScript compiler to type-check our code, and then output clean readable JavaScript that runs on lots of different runtimes.
The latest version of Typescript provides some exciting new features, new checking flags, editor productivity updates, and speed improvement,
- Template Literal Types
- Key Remapping in Mapped Types
- Recursive Conditional Types
--noUncheckedIndexedAccess
paths
withoutbaseUrl
checkJs
ImpliesallowJs
- React 17 JSX Factories
- Editor Support for the JSDoc
@see
Tag - Breaking Changes
TypeScript 4.1 is now available and you can use the below command to install the new version,
npm install typescript
If you want to download Typescript for Visual Studio,
TypeScript 4.1 for Visual Studio
Please follow the below instructions for Visual Studio Code or Sub,
For more details about this release, please visit the official Microsoft website. Courtesy: Microsoft
Comments (0)