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
Element implicitly has an \'any\' type because expression of type \'string\' can\'t be used to index type \'{ bar: string; }\'. No index