<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Generics on Commentary of Takao</title><link>https://takao.blog/zh-tw/tags/generics/</link><description>Recent content in Generics on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><copyright>Commentary of Takao</copyright><lastBuildDate>Wed, 15 Jul 2026 22:01:08 +0900</lastBuildDate><atom:link href="https://takao.blog/zh-tw/tags/generics/index.xml" rel="self" type="application/rss+xml"/><item><title>TypeScript 通用約束：建置類型安全性的 API</title><link>https://takao.blog/zh-tw/web/typescript-generic-constraints/</link><pubDate>Tue, 05 Mar 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/typescript-generic-constraints/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/typescript-generic-constraints-zh-tw.png" alt="Featured image of post TypeScript 通用約束：建置類型安全性的 API" /&gt;&lt;p&gt;TypeScript 泛型可讓您編寫可重複使用、類型安全的程式碼，但如果沒有約束，它們就太寬鬆了。 &lt;code&gt;extends&lt;/code&gt; 關鍵字將類型參數限制為具有特定屬性的形狀，為您提供靈活性和安全性。&lt;/p&gt;</description></item></channel></rss>