<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Shiro-Neko</author_name>
  <author_url>https://blog.hatena.ne.jp/Shiro-Neko/</author_url>
  <blog_title>白猫のメモ帳</blog_title>
  <blog_url>https://shironeko.hateblo.jp/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>こんばんは。 雑多に本を買いすぎて積み本が増えてきました。 今回はConditional Typesを見ていきます。名前の通り条件分岐ができる型です。 なんでそんなことがしたいのかとか、どういうときに役に立つのかという話を先にしたいのですが、そもそも文法を知らないと話が進まないので、先に見ていきましょう。 条件型（Conditional Types） 型を要求する場面でextendsキーワードを使って三項演算子のように条件分岐を行います。 ちなみにこのextendsはジェネリック型の制約で使うextendsとは別物です。 test('基本形', () =&gt; { type IsString&lt;T&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshironeko.hateblo.jp%2Fentry%2F2025%2F12%2F05%2F231032&quot; title=&quot;TypeScriptの型を復習する　その4 - 白猫のメモ帳&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>2025-12-05 23:10:32</published>
  <title>TypeScriptの型を復習する　その4</title>
  <type>rich</type>
  <url>https://shironeko.hateblo.jp/entry/2025/12/05/231032</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
