TypeScript keyof for certain types

前端 未结 0 1369
傲寒
傲寒 2020-12-17 06:32

I have this function:

const prop = (key: K) => (item: T) => item[key]
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题