How to get interface key type in generic function?

前端 未结 0 573
死守一世寂寞
死守一世寂寞 2021-01-27 18:20

I have a generic function that fetches some data:

function getData(initial: T[]): T[] {
  const [data, setData] = useState([         


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