Typescript——Generic compatibility issues

后端 未结 0 824
野趣味
野趣味 2020-12-13 22:50

the generic T of a class inherits an interface, and an attribute in the class is of type T. Then why can\'t an instance of a class that implements the interface be assigned

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