TypeScript 3.9 beta: Reduced compile time and editor improvements
The new beta release for TypeScript mainly focuses on providing stability, bug fixes, and crash-reduction. Thanks to multiple pull requests, TypeScript 3.9 beta reduces its material-ui’s compile time by up to 40%, issues regarding Promises have been fixed, and more.
The new beta release mainly focuses on providing stability, bug fixes, and crash-reduction. It arrives thanks to the feedback and efforts from the community.
Announcing 3.9 Beta! We’ve been focusing on polish, performance, stability, and correctness in this release and want your feedback! Check out our release notes and give it a shot!https://t.co/qAmDX4Bi3E
— TypeScript (@typescript) March 27, 2020
TypeScript 3.9 beta highlights
Let’s check on some of the new features included in TypeScript 3.9 beta.
- Inference and Promise.all improvements: Previous issues and errors regarding Promises have been fixed. View the pull request for more information.
- Improved speed: Thanks to multiple pull requests, TypeScript has reduced its material-ui’s compile time up to 40%. Optimizations include using objects instead of closures for type mappers, faster exit from isTypeRelatedTo, and optimizing deferred type references.
- Added @ts-expect-error to @ts-ignore directives: Thanks to contributions from Joshua Goldberg, now when a line is prefixed with a // @ts-expect-error comment, it suppresses the error, preventing it from being reported. In cases where there is no error, it will report that // @ts-expect-error is unnecessary.
- Visual Studio Code improvements: Select different versions of TypeScript in VS Code with the TypeScript: Select TypeScript Version command.
- Preserving newlines: When printing nodes from TextChanges, TypeScript now works to preserve newlines better than before.