In their beta version, TypeScript developers missed documenting two great features – control flow analysis for destructured discriminated unions and the addition of es2022 output target. They also made an additional noteworthy change since their beta – removing void 0 arguments in react-jsx mode. All these changes are available in the TypeScript 4.6.
The RC (Release Candidate) team finally captured the community’s suggestions for mismatched JSDoc parameter names, and these changes will be included in this update of TypeScript 4.6.
List of changes in TypeScript 4.6
- Allowing Code in Constructors Before
- Control Flow Analysis for Destructured Discriminated Unions
- Improved Recursion Depth Checks
- Indexed Access Inference Improvements
- Control Flow Analysis for Dependent Parameters
- Removed Unnecessary Arguments in
- JSDoc Name Suggestions
- TypeScript Trace Analyzer
- Breaking Changes
To start using TypeScript, you can get it through NuGet or use npm with this command:
npm install typescript