TypeScript 3.9, the next version of the , has arrived as a beta release, with fixes to address extremely poor editing and compilation speeds associated with some packages.
The TypeScript team had observed these performance issues with packages such as material-ui and styled-components. A series of six pull requests, covering operations such as and , have resulted in significant reductions of compile times — roughly 40 percent in the case of material-ui, for example.
Also to boost speed, some changes have been made to file renaming functionality in editor scenarios. TypeScript 3.9, due as a production release on May 12, also includes improvements in a number of other areas. The highlights:
- Improvements to the inference process, addressing a situation in which some regressions had occurred in previous updates to the declarations of functions like
- Uncalled function checks, introduced in to report an error when a developer forgot to call a function, are now supported in ternary conditionals, essentially, the
cond ? trueExpr : falseExpsyntax.
- Stricter checks on intersections and properties. This is a breaking change.
Released in beta on March 27, TypeScript 3.9 follows , which became available in February. Not included in TypeScript 3.9 is an
awaited type operator to model the way
Copyright © 2020 IDG Communications, Inc.