【发布时间】:2020-07-13 18:00:39
【问题描述】:
这是我想要得到的非常简单的示例。我的问题是关于@returns 标签。我应该在那里写什么?
class Base{
/**
* @returns {QUESTION: WHAT SHOUL BE HIRE??}
*/
static method(){
return new this()
}
}
class Sub extends Base{
}
let base= Base.method() // IDE should understand that base is instance of Base
let sub= Sub.method() // IDE should understand that sub is instance of Sub
【问题讨论】:
-
不幸的是,我相信没有办法做到这一点。
标签: javascript jsdoc