在代码完成中使用类型名称而不是 !type 值

Use type name instead of the !type value in code completion

我有一个函数,它有一个类型为 DataView 的 resultData 参数。 这看起来像代码完成工具提示中的以下内容。

...resultData: fn(buffer: +ArrayBuffer, byteOffset?: number, byteLength?: number)...

我的首选代码完成是:

...resultData: DataView... 

这在某种程度上是可以管理的吗?

在联系了其中一位 Tern.js 开发人员后,他回答如下:

"Not really. Tern doesn't use type names when showing function types, because those would usually be unhelpful."