ES6 inherited function returns wrong type when invoked on subclass

前端 未结 0 1658
醉酒成梦
醉酒成梦 2021-02-12 10:59

When a function is inherited by a subclass, I want the return type to be as if the function were defined directly on the subclass.

To be clear, the code works fine at run

相关标签:
回答
  • 消灭零回复
提交回复
热议问题