Trying out TypeScript for a React project and I\'m stuck on this error:
Element implicitly has an \'any\' type because expression of type \'string\' can\'t b
When using Object.keys, the following works:
Object.keys
Object.keys(this) .forEach(key => { console.log(this[key as keyof MyClass]); });