<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>typescript</anon>
  </categories>
  <description>環境 TypeScript 4 問題 例えば以下のようなサンプルコードがあったとする function receivedStringValue() : string { return 'apple'; } const fruits = { apple: 'りんご', banana: 'バナナ', melon: 'メロン' }; const key: string = receivedStringValue(); const value = fruits[key]; が、実はコレだといかのようなエラーになる Element implicitly has an 'any' type because…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20220822%2F1661122207&quot; title=&quot;TypeScriptでElement implicitly has an &amp;#39;any&amp;#39; type because expression of type &amp;#39;string&amp;#39;エラー - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-22 07:50:07</published>
  <title>TypeScriptでElement implicitly has an 'any' type because expression of type 'string'エラー</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20220822/1661122207</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
