According to the company, when dealing with calling types, developers sometimes faced too much restriction. TypeScript 3.3 aims to fix this by intersecting the parameters of signatures together to create a new signature. However, the company does note there is still some restrictions. “This new behavior only kicks in when at most one type in the union has multiple overloads, and at most one type in the union has a generic signature,” Daniel Rosenwasser, program manager of TypeScript, wrote in a post. Going forward, the team will continue to work on the user experience to address this.
The release also aims to speed up build times with –build mode and –watch mode improvements. According to the team, testing has shown a 50 to 75 percent reduction in build times than the original –build and –wach times.
On the language’s roadmap is version 3.4, which is expected to be released next month. The team plans to include improved support for read-only arrays and tuples, partial type argument inference and stricter types in the upcoming release. At a high-level, the team will continue to work on the five following goals:
- Types on every desk, in every home, for every JS developer
- Productivity through strong tooling
- Approachability and UX
- Community engagement
- Infrastructure and engineering systems