TypeScript 4.4 RC 发布

栏目: 软件资讯 · 发布时间: 4年前

内容简介:TypeScript 4.4 RC 现已发布。官方表示,从现在开始到 TypeScript 4.4 的稳定发布,预计除了关键的 bug 修复外,不会再有更多的变化。 可通过 NuGet 或以下 npm 进行获取: npm install typescript@rc 下面是 ...

TypeScript 4.4 RC 现已发布。官方表示,从现在开始到 TypeScript 4.4 的稳定发布,预计除了关键的 bug 修复外,不会再有更多的变化。

可通过 NuGet 或以下 npm 进行获取:

npm install typescript@rc

下面是 IDE 或编辑器获取 TypeScript 支持的途径:

TypeScript 4.4 的一些主要亮点是:

Inlay 提示

TypeScript 提供了对 inlay 提示的支持,这有助于在代码中显示有用的信息,如参数名称和返回类型。你可以将其视为一种友好的“幽灵文本 (ghost text)”。

TypeScript 4.4 RC 发布

添加针对 JavaScript 的拼写建议

export var inModule = 1
inmodule.toFixed() // errors on exports

function f() {
    var locals = 2
    locale.toFixed() // errors on locals
}
var object = {
    spaaace: 3
}
object.spaaaace // error on read
object.spaace = 2 // error on write
object.fresh = 12 // OK, no spelling correction to offer

关于此功能的详细信息查看此 PR

点此查看 TypeScript 4.4 RC 发布公告


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Linux Device Drivers

Linux Device Drivers

Jonathan Corbet、Alessandro Rubini、Greg Kroah-Hartman / O'Reilly Media / 2005-2-17 / USD 39.95

Device drivers literally drive everything you're interested in--disks, monitors, keyboards, modems--everything outside the computer chip and memory. And writing device drivers is one of the few areas ......一起来看看 《Linux Device Drivers》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码