{"categories":["TypeScript"],"author_url":"https://blog.hatena.ne.jp/kikiki-kiki/","title":"TypeScript \u7279\u5b9a\u306e\u30ad\u30fc\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u578b","blog_url":"https://chaika.hatenablog.com/","url":"https://chaika.hatenablog.com/entry/2022/06/11/083000","width":"100%","image_url":"https://m.media-amazon.com/images/I/512H3JogW9L._SL500_.jpg","type":"rich","description":"\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7279\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3059\u308b\u95a2\u6570\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3057\u305f interface Todo { name: string; description: string; } const todo: Todo = { name: \"\", description: \"\" }; const update = (arg: {name?: string; description?: string}): Todo => { return { ...todo, ...arg }; }; update \u95a2\u6570\u306e\u5f15\u6570\u306e\u578b\u3092 interface \u3092\u4f7f\u3063\u3066\u3044\u3044\u611f\u3058\u306b\u3057\u305f\u3044\u2026 NG: [key: union\u2026","author_name":"kikiki-kiki","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2022%2F06%2F11%2F083000\" title=\"TypeScript \u7279\u5b9a\u306e\u30ad\u30fc\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u578b - \u304b\u3082\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","published":"2022-06-11 08:30:00","provider_name":"Hatena Blog","blog_title":"\u304b\u3082\u30e1\u30e2"}