这是我想要得到的非常简单的例子。我的问题是关于@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
潇潇雨雨
慕妹3146593
相关分类