TypeScript error trying to set a valid object property (key is treated as string despite conditional check)

后端 未结 0 1804
暗喜
暗喜 2021-01-13 01:06

The code below shows TS error: Element implicitly has an \'any\' type because expression of type \'string\' can\'t be used to index type \'myObj\'. No index signature with

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