TypeScript type that only accepts keys of an object

前端 未结 0 1793
难免孤独
难免孤独 2021-01-21 08:24

I don\'t know if this is really possible, but I have an existing object that maps string keys to React components.

I want to create a type to essentially make a parent co

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