[TypeScript]「element implicitly has an ‘any’ type because expression of type ‘string’ can’t be used to index type」エラーの解決方法
「element implicitly has an 'any' type because expression of type 'string' can't be used to index type と言うエラーが出た!」と言う人に向けて、私が解決できた方法を紹介します。