Home Update TypeScript 5.7 improves error reporting

TypeScript 5.7 improves error reporting

28
Profile side photo of concentrated skilled web expert afro american girl sit evening desk use computer netbook work java script html back-end algorithm in workstation workplace

Also in TypeScript 5.7 is a brand new compiler choice, --rewriteRelativeImportExtensions. When an import path is relative and ends with a TypeScript extension (.ts, .tsx, .mts, .cts), and it’s a non-declaration file, the compiler will rewrite the trail to the corresponding JavaScript extension (.js, .jsx, .mjs, .cjs). This permits for writing TypeScript code that may be run in-place after which compiled into JavaScript code when prepared.

Following the beta, a launch candidate for TypeScript 5.7 is deliberate for mid-November, quickly to be adopted by a secure launch. TypeScript 5.7 comes on the heels of the September launch of TypeScript 5.6, which options capabilities that embody disallowing nullish and truthy checks on syntax that by no means varies on nullishness or truthiness.

 Other options in TypeScript 5.7 embody the next:



Source hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here