Get keys from interface in a generic function

后端 未结 0 876
温柔的废话
温柔的废话 2021-02-13 12:54

I need to get types from an interface by doing something like below, but I need to do it inside a function. Is there any way to do this using typescript generics?

I need

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