TypeScript TypeScript -

Announcing TypeScript 5.4 Beta

Today we are excited to announce the availability of TypeScript 5.4 Beta. To get started using the beta, you can get it through NuGet, or through npm with the following command: npm install -D typescript@beta Here’s a quick list of what’s new in TypeScript 5.4! The post Announcing TypeScript 5.4 Beta appeared first on TypeScript.

TypeScript 5.4 Beta已发布,新功能包括在闭包中保留缩小类型、NoInfer实用类型、Object.groupBy和Map.groupBy方法、对--moduleResolution bundler和--module preserve中的require()调用的支持,即将弃用的功能、破坏性变更和发射变更。目前重点是修复错误和完善,以便进行稳定版本发布。

--module preserve --moduleResolution NoInfer TypeScript 5.4 Beta typescript 新功能 闭包

相关推荐 去reddit讨论