I have a function which has a resultData parameter with the type of 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?
答案 0 :(得分:0)
在联系了Tern.js的一位开发人员后,他回答了以下问题:
“不是真的。在显示函数类型时,Tern不使用类型名称,因为那些通常没有用。”