TypeScript 5.7 is now available for download through npm. The release candidate includes several improvements, including checking for never-initialized variables, path rewriting for relative paths, and a new compiler option called --rewriteRelativeImportExtensions. TypeScript has been able to catch issues when a variable has not yet been initialized in all prior branches, but it now reports errors when variables have never been initialized at all.
Path rewriting for relative paths is also introduced. TypeScript now supports running TypeScript code "in-place" without requiring a build step that generates output JavaScript files. However, this requires importing the appropriate TypeScript extension at runtime. To support this scenario, a new compiler option called --rewriteRelativeImportExtensions is added.
Path rewriting for relative paths is also introduced. TypeScript now supports running TypeScript code "in-place" without requiring a build step that generates output JavaScript files. However, this requires importing the appropriate TypeScript extension at runtime. To support this scenario, a new compiler option called --rewriteRelativeImportExtensions is added.
TypeScript 5.7 RC
Today we are announcing the availability of the release candidate of TypeScript 5.7.
To get started using the RC, you can get it through npm with the following command:
npm install -D typescript@rc
Let’s take a look at what’s new in TypeScript 5.7!