{"published":"2022-08-22 07:50:07","url":"https://blog.turai.work/entry/20220822/1661122207","provider_name":"Hatena Blog","description":"\u74b0\u5883 TypeScript 4 \u554f\u984c \u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u3042\u3063\u305f\u3068\u3059\u308b function receivedStringValue() : string { return 'apple'; } const fruits = { apple: '\u308a\u3093\u3054', banana: '\u30d0\u30ca\u30ca', melon: '\u30e1\u30ed\u30f3' }; const key: string = receivedStringValue(); const value = fruits[key]; \u304c\u3001\u5b9f\u306f\u30b3\u30ec\u3060\u3068\u3044\u304b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u306a\u308b Element implicitly has an 'any' type because\u2026","author_name":"thr3a","categories":["typescript"],"type":"rich","blog_url":"https://blog.turai.work/","version":"1.0","height":"190","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20220822%2F1661122207\" title=\"TypeScript\u3067Element implicitly has an &#39;any&#39; type because expression of type &#39;string&#39;\u30a8\u30e9\u30fc - \u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057","image_url":null,"width":"100%","title":"TypeScript\u3067Element implicitly has an 'any' type because expression of type 'string'\u30a8\u30e9\u30fc","author_url":"https://blog.hatena.ne.jp/thr3a/"}