Typescript - How to automatically infer variable belongs in key set

后端 未结 0 1035
青春惊慌失措
青春惊慌失措 2021-01-25 02:58

I have an object and want to access it using a string variable, however I get the error:

no index signature with a parameter of type \'string\' was found on

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