[英]Use type name instead of the !type value in code completion
I have a function which has a resultData parameter with the type of DataView. 我有一个函数,其resultData参数的类型为DataView。 This looks like the following in the code completion tooltip. 这在代码完成工具提示中如下所示。
...resultData: fn(buffer: +ArrayBuffer, byteOffset?: number, byteLength?: number)...
My preffered code completion would be: 我的优先代码完成将是:
...resultData: DataView...
Is that somehow managable? 这是以某种方式管理的吗?
After reaching out one of the Tern.js developers he answered the following: 在联系了Tern.js的一位开发人员之后,他回答了以下问题:
"Not really. Tern doesn't use type names when showing function types, because those would usually be unhelpful." “不是真的.Tern在显示函数类型时不使用类型名称,因为那些通常是无益的。”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.