The first beta version of TypeScript 4.7 has been released.
Major updates
- Support for ECMAScript modules in Node.js
- Control over Module Detection
- Control Flow Analysis for Computed Properties
- Optimize function inference in objects and methods (Function Inference)
- Introducing Instantiation Expressions
infer
extends
Constraints on Type Variables- Provides an optional Variance annotation for Type Parameters
typeof
onFields#private
- Included
moduleSuffixes
Resolution Customization resolution-mode
- 导入 Groups-Aware Organize
- Object Method Snippet Completions
- breaking changes