<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>TypeScript ジェネリクス入門：&lt;T&gt; の基本と型制約の書き方 ジェネリクス（Generics）は、型を引数として受け取れる仕組みです。同じ処理を異なる型に対して型安全に使い回せます。 なぜジェネリクスが必要か any を使うと型の恩恵がなくなります。 // any を使う場合：型チェックが効かない function identity(arg: any): any { return arg } const result = identity(42) result.toUpperCase() // 実行時エラーだが TypeScript は気づけない ジェネリクスを使うと、型を保ったまま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F06%2F17%2F231023&quot; title=&quot;TypeScript ジェネリクス入門：`&amp;lt;T&amp;gt;` の基本と型制約の書き方 - Engineering Tech Dojo&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>2026-06-17 23:10:23</published>
  <title>TypeScript ジェネリクス入門：`&lt;T&gt;` の基本と型制約の書き方</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/06/17/231023</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
