How use keyof on object shape rather than explicit type

后端 未结 0 1732
渐次进展
渐次进展 2020-12-12 05:03

I want to create a type based on the keys of another object in TypeScript.

I have managed to do this with weak typing. But if I use a strong type Record

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