TypeScript 4.5 is a new language that builds on JavaScript by adding static checked types. The Awaited type is meant to model operations like await in async functions. ECMAScript module support for Node.js 12 has been deferred to a future release, and is now only available as an experimental flag.

15m read timeFrom devblogs.microsoft.com
Post cover image
Table of contents
What’s New Since the Beta and RC?The Awaited Type and Promise ImprovementsSupporting lib from node_modulesTemplate String Types as Discriminants--module es2022Tail-Recursion Elimination on Conditional TypesDisabling Import Elisiontype Modifiers on Import NamesPrivate Field Presence ChecksImport AssertionsConst Assertions and Default Type Arguments in JSDocFaster Load Time with realpathSync.nativeNew Snippet CompletionsBetter Editor Support for Unresolved TypesExperimental Nightly-Only ECMAScript Module Support in Node.jsBreaking ChangesWhat’s Next?

Sort: