typescript inference in array elements

前端 未结 0 667
梦如初夏
梦如初夏 2021-02-08 06:49

I have the next code:

class A {
  constructor(public valueGetters: { getValue: () => T }[]) {}

  getBundleData() {
    return this.valueGetters
              


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