The RC version of TypeScript 4.1 has been released, which has many new features previously announced.
The main updates include:
- Introduce string template type
- Add key remapping to the mapping type
- Allow recursive condition types
- Added check index access function
noUncheckedIndexedAccess
- It is not necessary to specify baseUrl when using path to enable path mapping
- checkJs now means allowJs by default, no longer need to set checkJs and allowJs at the same time
- Support React 17's jsx and jsxdev functions
- ……
For more information, please see: official update announcement