Element implicitly has an ‘any‘ type because expression of type ‘any‘ can‘t be used to index type 报错
Typescriptlet obj = { a: "hey", b: "you", c: "guys" };for (const k in obj) { console.log(obj[k].toUpperCase()); // error! /* Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ a: string; b: str