<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomotomo1129</author_name>
  <author_url>https://blog.hatena.ne.jp/tomotomo1129/</author_url>
  <blog_title>Web開発における知見共有系ページ</blog_title>
  <blog_url>https://job-info.hateblo.jp/</blog_url>
  <categories>
    <anon>Typescript</anon>
  </categories>
  <description>TypeScriptではEnumは非推奨なのか 利点 問題点 代替案 例 Enumの例 Union Typesの例 TypeScriptではEnumは非推奨なのか TypeScriptでは、Enum（列挙型）は完全に非推奨というわけではありませんが、一部の状況では避けるべきとされています。 以下にEnumの利点と問題点を挙げます。 利点 1. コードの可読性向上：定数の集合を定義することで、意味のある名前を付けられるため、コードの可読性が向上します。 2. 型安全性：列挙型を使うことで、特定の値しか使えないことをコンパイラが保証します。 問題点 1. バンドルサイズの増加：Enumを使うと、J…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjob-info.hateblo.jp%2Fentry%2F2024%2F07%2F06%2F000913&quot; title=&quot; - Web開発における知見共有系ページ&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>2024-07-06 00:09:13</published>
  <title></title>
  <type>rich</type>
  <url>https://job-info.hateblo.jp/entry/2024/07/06/000913</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
