Announcing TypeScript 5.1 - TypeScript
Today we’re excited to announce the release of TypeScript 5.1!
If you’re not yet familiar with TypeScript, it’s a language that builds on JavaScript by adding constructs called types. These types can describe some details about our program, and can be checked by TypeScript before they’re compiled away in order to catch possible typos, logic bugs and more. TypeScript also uses these types to provide editor tooling like code completions, refactorings, and more. In fact, if you already write JavaScript in editors like Visual Studio or VS Code, that experience is already powered up by TypeScript! You can learn more at https://typescriptlang.org/.
To get started using TypeScript, you can get it through NuGet, or more commonly through npm with the following command:
npm install -D typescriptHere’s a quick list of what’s new in TypeScript 5.1!
- Easier Implicit Returns for undefined-Returning Functions
- Unrelated Types for Getters and Setters
- Decoupled Type-Checking Between JSX Elements and JSX Tag Types
- Namespaced JSX Attributes
- typeRoots Are Consulted In Module Resolution
- Linked Cursors for JSX Tags
- Snippet Completions for @param JSDoc Tags
- Optimizations
- Breaking Changes
Microsoft has announced the availability of TypeScript 5.1.