{"author_url":"https://blog.hatena.ne.jp/aknow2/","url":"https://aknow2.hatenablog.com/entry/2018/11/14/143033","published":"2018-11-14 14:30:33","title":"Typescript \u30d6\u30e9\u30b1\u30c3\u30c8\u8a18\u6cd5(Object[key])\u3067no index signature\u30a8\u30e9\u30fc\u3092type safe\u306b\u89e3\u6c7a\u3057\u305f\u3044\u3002","provider_url":"https://hatena.blog","categories":[],"height":"190","provider_name":"Hatena Blog","width":"100%","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faknow2.hatenablog.com%2Fentry%2F2018%2F11%2F14%2F143033\" title=\"Typescript \u30d6\u30e9\u30b1\u30c3\u30c8\u8a18\u6cd5(Object[key])\u3067no index signature\u30a8\u30e9\u30fc\u3092type safe\u306b\u89e3\u6c7a\u3057\u305f\u3044\u3002 - aknow2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Typescript\u3067Object\u306b\u5bfe\u3057\u3066[\u6587\u5b57\u5217]\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30d6\u30e9\u30b1\u30c3\u30c8\u8a18\u6cd5\u3092\u7528\u3044\u308b\u3068\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3002 \u4f8b\u3048\u3070\u3001\u3053\u306e\u69d8\u306b\u66f8\u304f\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304d\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u901a\u308a\u307e\u305b\u3093\u3002 interface ISomeObject { firstKey: string; secondKey: string; } const obj = { firstKey: \"a\", secondKey: \"b\", } as ISomeObject; const key: string = 'secondKey'; const secondValue: string = obj[key]; // Element implic\u2026","author_name":"aknow2","blog_url":"https://aknow2.hatenablog.com/","image_url":null,"version":"1.0","blog_title":"aknow2"}