{"image_url":null,"author_url":"https://blog.hatena.ne.jp/dackdive/","title":"TypeScript: \u914d\u5217\u306e\u5024\u3092String Literal Types\u3068\u3057\u3066\u4f7f\u3046","blog_url":"https://dackdive.hateblo.jp/","description":"\u30e1\u30e2\u3002 \u3053\u3093\u306a\u611f\u3058\u3067\u3001\u3042\u308b\u914d\u5217\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5024\u306b\u5bfe\u3057\u3001\u300c\u305d\u306e\u5024\u306e\u3044\u305a\u308c\u304b\u300d\u3092\u610f\u56f3\u3057\u305f String Literal Types \u3092\u4f5c\u308a\u305f\u3044\u3002 const size = ['small', 'medium', 'large']; type Size = 'small' | 'medium' | 'large'; \u3067\u3082\u3001\u914d\u5217\u3068\u578b\u5b9a\u7fa9\u3068\u3067\u5024\u3092\u4e8c\u5ea6\u66f8\u304d\u305f\u304f\u306a\u3044\u3002 \u3053\u3046\u3059\u308b TypeScript 3.4 \u3067\u5c0e\u5165\u3055\u308c\u305f const assertion \u3092\u4f7f\u3046\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3002 const size = ['small', 'medium', 'large'] as const; // reado\u2026","author_name":"dackdive","version":"1.0","blog_title":"dackdive's blog","categories":["Frontend"],"published":"2019-08-13 09:00:00","type":"rich","provider_name":"Hatena Blog","url":"https://dackdive.hateblo.jp/entry/2019/08/13/090000","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdackdive.hateblo.jp%2Fentry%2F2019%2F08%2F13%2F090000\" title=\"TypeScript: \u914d\u5217\u306e\u5024\u3092String Literal Types\u3068\u3057\u3066\u4f7f\u3046 - dackdive&#39;s blog\" 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","provider_url":"https://hatena.blog"}