TypeScript 4.5 expected additions
TypeScript 4.5 was released with enhancements, including type Awaited support, enhancements to support promises, and new snippet completions.
Another improvement means that TypeScript 4.5 can now restrict values that have pattern string types and also recognizes pattern string types as discriminators. TypeScript 4.5 now also provides snippet completions when replacing or implementing methods in classes and for JSX attributes.
The new version also has a new feature that performs the elimination of final recursion on conditional types. The team says TypeScript needs a way to gracefully fail when it detects possibly infinite recursion, or any type extension that can take a long time and affect your editing experience. To handle this, TypeScript has heuristics that identify when these problems occur, but some valid types trigger the “potential problem” heuristic. To overcome this, TypeScript 4.5 does some elimination of final recursion on conditional types.
Other improvements include private field presence checks that determine if an object has a private field on it; and import assertions that ensure that an import has an expected format.
TypeScript 4.5 is available now.
TypeScript on NuGet
TypeScript on GitHub
TypeScript 4.4 improves control flow parsing
TypeScript 4.3 adds separate property write types
TypeScript 4.2 Release Candidate available
New TypeScript website launched
TypeScript 4.1 adds types of time literals
TypeScript 3.0 adds project references
TypeScript adds an unused extent report
TypeScript adds conditional types
To be informed of new articles on I Programmer, subscribe to our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
or send your comment to: [email protected]