<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aknow2</author_name>
  <author_url>https://blog.hatena.ne.jp/aknow2/</author_url>
  <blog_title>aknow2</blog_title>
  <blog_url>https://aknow2.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>TypescriptでObjectに対して[文字列]でアクセスするブラケット記法を用いると発生するエラー。 例えば、この様に書くとエラーが出てきてコンパイルが通りません。 interface ISomeObject { firstKey: string; secondKey: string; } const obj = { firstKey: &quot;a&quot;, secondKey: &quot;b&quot;, } as ISomeObject; const key: string = 'secondKey'; const secondValue: string = obj[key]; // Element implic…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faknow2.hatenablog.com%2Fentry%2F2018%2F11%2F14%2F143033&quot; title=&quot;Typescript ブラケット記法(Object[key])でno index signatureエラーをtype safeに解決したい。 - aknow2&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>2018-11-14 14:30:33</published>
  <title>Typescript ブラケット記法(Object[key])でno index signatureエラーをtype safeに解決したい。</title>
  <type>rich</type>
  <url>https://aknow2.hatenablog.com/entry/2018/11/14/143033</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
