Reason for “No index signature” error in TypeScript in “for in” loop

前端 未结 0 458
囚心锁ツ
囚心锁ツ 2021-01-21 04:16

Why does TypeScript 4.1.3 complain Element implicitly has an \'any\' type because expression of type \'string\' can\'t be used to index type \'{ bar: string; }\'. No index

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