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

时间:2016-04-15 15:14:31

标签: javascript ternjs

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?

1 个答案:

答案 0 :(得分:0)

在联系了Tern.js的一位开发人员后,他回答了以下问题:

“不是真的。在显示函数类型时,Tern不使用类型名称,因为那些通常没有用。”