Define an array with infered types related to first prop in the array

前端 未结 0 1723
粉色の甜心
粉色の甜心 2021-02-06 16:36

what I need is:

  • typescirpt understood that the first element of each internal array is a prop create (therefore with autocomplete)
  • that the second element
相关标签:
回答
  • 消灭零回复
提交回复
热议问题