How to use the value of a parameter as a property name in the return type for a function in TypeScript?

后端 未结 0 1662
借酒劲吻你
借酒劲吻你 2021-01-04 13:18

I\'ve written a function to convert an object to an array where each element of the array contains the ID of the object. This currently works well with the following code:

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