TypeScript 4.5 is due to reach the release candidate stage on November 2 and to be generally available on November 16. The beta is accessible via NuGet or NPM:
npm install typescript@betacode.
Also new in TypeScript 4.5:
libto better support the
realpathSyncfunction is now leveraged on all operating systems. Previously, it was limited to Linux. Now it has been adapted to OSes that are typically case-sensitve, like Windows and MacOS.
Awaitedtype, is introduced for modeling operations like
asyncfunctions or the
Awaitedcan be useful for modeling existing APIs.
es2022, is supported, providing top-level
await, meaning developers can use
typemodifier on individual named imports.