<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>TypeScript 学习专题 on 子芒</title>
    <link>https://www.zimang.fun/topics/typescript/</link>
    <description>Recent content in TypeScript 学习专题 on 子芒</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Thu, 08 Oct 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.zimang.fun/topics/typescript/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>tsconfig.json 一次配明白：可抄走的基线、四问决策与 tsc -b</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch14-configuring-typescript/</link>
      <pubDate>Thu, 08 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch14-configuring-typescript/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《Total TypeScript 精要》 · 第14章 配置TypeScript　｜　本章把全书散落的 tsconfig.json 线索收拢成一份可直接抄走的基线配置，再用四个问题——谁来转译、是否做库、在不在 monorepo、跑不跑 DOM——推导出全部增量选项。建议对照 PDF 中的配置代码块，边读边核对自己的项目，读完顺手升级 tsconfig。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript Essentials 终章 Ch16 笔记：/utils——被忽视的第三层</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch16-final-notes/</link>
      <pubDate>Thu, 08 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch16-final-notes/</guid>
      <description>&lt;p&gt;全书最后一章《Building Powerful Shared Utilities》。它回答一个被「两级论」遮蔽的问题：库开发用尽高级特性、应用开发守好类型安全——那&lt;strong&gt;应用自己的 &lt;code&gt;/utils&lt;/code&gt; 目录&lt;/strong&gt;呢？&lt;/p&gt;</description>
    </item>
    <item>
      <title>把类型写成函数：泛型、模板字面量与映射类型的设计之道</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch15-designing-types/</link>
      <pubDate>Thu, 08 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch15-designing-types/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《Total TypeScript 基础》 · 第15章 设计你的类型　｜　这一章带你从「会用类型」迈向「设计类型」：把类型变成可复用的「类型函数」。泛型、模板字面量、条件与映射类型四大工具逐一登场，配上九道精心设计的练习。建议边读边在编辑器里 hover 验证类型展开结果，体会类型系统的表达力。&lt;/p&gt;</description>
    </item>
    <item>
      <title>被忽视的第三层：把 /utils 写成团队级迷你库</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch16-shared-utilities/</link>
      <pubDate>Thu, 08 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-08-essentials-ch16-shared-utilities/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript基础教程》 · 第16章·构建强大的共享工具　｜　本章聚焦常被忽视的 TypeScript 第三层复杂度——/utils 工具目录。groupBy、debounce 这类被复用上百次的迷你库，正是泛型函数、类型谓词、断言函数与函数重载四大武器的用武之地。建议边读边在编辑器里复现示例，重点体会类型参数的推断规则，最后用七道练习检验成果。&lt;/p&gt;</description>
    </item>
    <item>
      <title>把 tsconfig.json 一次配对：从九项基线到 tsc -b</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch14-configuring-typescript/</link>
      <pubDate>Wed, 07 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch14-configuring-typescript/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript入门指南》 · 第14章·配置TypeScript　｜　本章把全书散落的配置知识收束成一张决策地图：先给出一份可直接照抄的 tsconfig 基线，再按项目形态——应用、库、monorepo、多端工程——逐项做增量决策，最后延伸到 Node 原生跑 TS 与多配置管理。建议对照自己项目的 tsconfig.json 精读原文，边读边核对，读完即可落地一份现代配置。&lt;/p&gt;</description>
    </item>
    <item>
      <title>看似怪异，实则必然：TypeScript 的『怪癖』都是设计取舍</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch12-the-weird-parts/</link>
      <pubDate>Wed, 07 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch12-the-weird-parts/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript核心指南》 · 第12章·TypeScript奇妙的方面　｜　为什么传变量的多余属性不报错、内联传参就报错？为什么 &lt;code&gt;{}&lt;/code&gt; 不是空对象？本章集中拆解 TypeScript 最令人困惑的角落：evolving any、开放对象模型、类型与值的双世界、函数可赋值性。读完你会发现，每个『怪』背后都是面向 JavaScript 动态性的必然取舍。建议边读边在编辑器里验证示例。&lt;/p&gt;</description>
    </item>
    <item>
      <title>深写《模块与声明文件》：TS 的两个世界协议（Ch12 快读 &#43; Ch13）</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch13-deep-modules-declarations/</link>
      <pubDate>Wed, 07 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch13-deep-modules-declarations/</guid>
      <description>&lt;p&gt;Ch13 是深写章（module/script 判定、.d.ts、declare 家族），Ch12（怪癖篇）按计划快读。深写 Ch13 的理由：读 harness 源码时 import 跳进 &lt;code&gt;.d.ts&lt;/code&gt; 的每一步困惑（&lt;code&gt;declare global&lt;/code&gt;、模块扩充、&lt;code&gt;export {}&lt;/code&gt;）都在这章。三组行为本地 tsc 项目模式实测。&lt;/p&gt;</description>
    </item>
    <item>
      <title>一行 export {} 的玄机：读懂模块、脚本与 .d.ts 声明文件</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch13-modules-and-declaration-files/</link>
      <pubDate>Wed, 07 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-07-essentials-ch13-modules-and-declaration-files/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《Total TypeScript 精要》 · 第13章·模块、脚本和声明文件　｜　为什么在 .ts 文件里声明一个 name 变量会报「重复声明」？答案藏在 TypeScript 对模块与脚本的隐形判定里。本章讲透这条规则，并带你认识每天都在默默服务你的 .d.ts 声明文件：从 declare 关键字、lib 内置类型到 @types 生态。建议边读边用 Go to Definition 在编辑器里实地探索，效果最佳。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript的「怪」，其实是必然——开放对象、双世界与函数联合的真相</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-02-essentials-ch12-the-weird-parts/</link>
      <pubDate>Fri, 02 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-02-essentials-ch12-the-weird-parts/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript精华》 · 第12章·TypeScript奇妙的方面　｜　本章收拢TypeScript最令人困惑的角落：类型会随赋值「进化」的变量、时有时无的多余属性检查、名不副实的空对象类型{}，以及类型与值两个世界的边界。读懂后你会发现，这些怪相大多是「开放对象」这一个设计决定的连锁反应。建议边读边把代码敲进编辑器，逐行hover验证。&lt;/p&gt;</description>
    </item>
    <item>
      <title>向 TypeScript 说谎的正确姿势：注解、断言与错误压制的分寸感</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-02-essentials-ch11-annotations-and-assertions/</link>
      <pubDate>Fri, 02 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-02-essentials-ch11-annotations-and-assertions/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript核心指南》 · 第11章·注解与断言　｜　本章讲与编译器讨价还价的三类工具：变量注解、satisfies 与断言（as、!、@ts-ignore 等）。难得的是它不止罗列语法，更训练判断力——何时你真的比 TypeScript 懂，何时只是代码写法不讨巧。建议边读边在编辑器复现报错，重点精读 p.234-236 的取舍论述与练习 11-4 的最终心法。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript Essentials Ch11 笔记：与编译器讨价还价的艺术</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch11-notes/</link>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch11-notes/</guid>
      <description>&lt;p&gt;第 11 章《Annotations and Assertions》——当推断不合意时的全套「议价工具」。全章可以浓缩成一张选择题：&lt;strong&gt;变量赢，还是值赢？&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&#34;变量注解的代价变量赢值被遗忘&#34;&gt;变量注解的代价：变量赢，值被遗忘&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;const config: Record&amp;lt;string, Color&amp;gt;&lt;/code&gt; 让 TS 做两件事：校验初值 + &lt;strong&gt;遗忘值的具体类型&lt;/strong&gt;。代价是联合成员的精确访问没了——&lt;code&gt;config.foreground.r&lt;/code&gt; 直接报错（TS 不知道 foreground 是 string 还是 &lt;code&gt;{r,g,b}&lt;/code&gt; 分支）。去掉注解则&amp;quot;值赢&amp;quot;：推断精确但校验消失。&lt;/p&gt;</description>
    </item>
    <item>
      <title>当你比 TypeScript 懂得更多：satisfies、as 与”合理撒谎”的艺术</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch11-annotations-and-assertions/</link>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch11-annotations-and-assertions/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript基础》 · 第11章 注解与断言　｜　本章教你与编译器&amp;quot;讨价还价&amp;quot;的全部手段：satisfies、as 断言、非空断言 ! 与三类错误抑制指令——以及何时该用、何时是饮鸩止渴。建议先精读前半的概念辨析，再亲自动手做练习 11-1 至 11-5，把&amp;quot;变量赢还是值赢&amp;quot;的选择直觉刻进肌肉记忆。&lt;/p&gt;</description>
    </item>
    <item>
      <title>深写《派生类型》：单向的世界桥（Ch10）</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch10-deep-deriving/</link>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch10-deep-deriving/</guid>
      <description>&lt;p&gt;Ch10 是全书的&amp;quot;读库代码钥匙&amp;quot;章：&lt;code&gt;keyof&lt;/code&gt; / &lt;code&gt;typeof&lt;/code&gt; / 索引访问 / &lt;code&gt;Parameters&lt;/code&gt; / &lt;code&gt;ReturnType&lt;/code&gt; / &lt;code&gt;Awaited&lt;/code&gt;。深写它的原因：harness 里几乎每一个泛型工具、每一段 store 类型设计，都是这六个操作的组合拳。以下示例全部经本地 tsc 实测（14 行类型标注通过、1 行故意报错验证联合的边界）。&lt;/p&gt;</description>
    </item>
    <item>
      <title>一处修改，处处同步：类型派生的完整工具箱</title>
      <link>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch10-deriving-types/</link>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-10-01-essentials-ch10-deriving-types/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript核心指南》 · 第10章·类型推导　｜　本章把 DRY 原则搬进类型世界：用 keyof、typeof、索引访问、Parameters/ReturnType 等工具，从既有类型、运行时值甚至第三方函数中派生新类型，建立类型的单一事实来源。建议先吃透各操作符语义，再跟着书中 9 个练习动手验证，最后精读“派生 vs 解耦”——那是全章的灵魂所在。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript Essentials Ch8–Ch9 笔记：类，与那些「TS 自己生造」的东西</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-30-essentials-ch08-ch09-notes/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-30-essentials-ch08-ch09-notes/</guid>
      <description>&lt;p&gt;合并两章：Ch8《Classes》讲 JS 原生的类如何融入类型系统；Ch9《TypeScript-Only Features》讲三个&lt;strong&gt;会生成运行时代码&lt;/strong&gt;的 TS 专属特性（参数属性、enum、namespace）。两章合起来正好回答一个问题：&lt;strong&gt;哪些是 JavaScript 的，哪些是 TypeScript 编译器生造的&lt;/strong&gt;——分清这条线，才知道新代码该往哪边站。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript 的三件“老古董”：参数属性、Enum 与 Namespace</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-30-essentials-ch09-typescript-only-features/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-30-essentials-ch09-typescript-only-features/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript基础》 · 第9章 TypeScript专属特性　｜　TypeScript 并不只是『JavaScript 加类型』——参数属性、enum、namespace 这三个特性会真正生成运行时代码，也带来不少怪癖：反查映射、名义类型比较、前模块时代的组织方案。本章逐一拆解它们的编译产物，并回答更关键的问题：今天还该不该用？建议边读边把示例丢进编译器，对照验证输出。&lt;/p&gt;</description>
    </item>
    <item>
      <title>类：从一行 `class` 到完整对象体系的全景地图</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-30-essentials-ch08-classes/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-30-essentials-ch08-classes/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript核心要点》 · 第8章·类　｜　本章用一条主线把 TypeScript 的类讲透：属性如何落地（constructor）、如何加锁（readonly 与 #）、方法如何绑定 this、继承如何用 super 与 override 保驾护航，最后以 implements 和 abstract 收束于「契约」。建议边读边敲代码，把章末五个 CanvasNode 练习当自测，读完即可独立搭建类型安全的类层次。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript Essentials Ch7 笔记：可变性决定类型的宽窄</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-29-essentials-ch07-notes/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-29-essentials-ch07-notes/</guid>
      <description>&lt;p&gt;第 7 章《Mutability》回答一个几乎人人踩过的困惑：为什么 &lt;code&gt;let genre = &#39;rock&#39;&lt;/code&gt; 传给联合类型参数会报错，换成 &lt;code&gt;const&lt;/code&gt; 就好了？全章的底层逻辑就一句——&lt;strong&gt;TypeScript 根据「这个值以后还能不能变」来决定推断的宽窄&lt;/strong&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>伴读 · 第6章《对象》：类型组合的艺术——从 &amp; 与 extends 到 Record 与 DistributiveOmit</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-29-essentials-ch06-objects/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-29-essentials-ch06-objects/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript核心精髓》 · 第6章·对象　｜　本章从对象字面量迈向真正的类型组合术：用 &amp;amp; 与 interface extends 派生新类型，用 Record 与索引签名驾驭动态键，再借 Partial、Pick 等工具类型消除重复。建议边读边在编辑器里复现示例，重点体会 never 的静默陷阱与 Omit 的联合类型坑；穿插其间的八道练习题，是检验理解的试金石。&lt;/p&gt;</description>
    </item>
    <item>
      <title>为什么你的 &#39;rock&#39; 被推断成了 string？——第7章《可变性》伴读</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-29-essentials-ch07-mutability/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-29-essentials-ch07-mutability/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript必备》 · 第7章·可变性　｜　本章回答一个高频困惑：为什么 &lt;code&gt;let genre = &#39;rock&#39;&lt;/code&gt; 传给联合类型参数会报错，换成 &lt;code&gt;const&lt;/code&gt; 却安然无恙？答案藏在可变性与类型推断的关系里。你将学到 readonly 家族、Readonly 助手与 as const 深度冻结，并绕开 readonly 对象的历史漏洞。建议对照 PDF 中的代码逐个上机验证，收获最大。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript Essentials Ch4 笔记：注解的边界感</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch04-notes/</link>
      <pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch04-notes/</guid>
      <description>&lt;p&gt;第 4 章是全书的地基章（p33–106，全书最长的一章）：七种基本类型、注解、推断、&lt;code&gt;any&lt;/code&gt;、对象类型与 &lt;code&gt;type&lt;/code&gt; 别名、数组与元组、泛型初见、函数的完整类型形态。读完最大的收获不是知识点本身，而是一条主线——&lt;strong&gt;类型注解的边界感&lt;/strong&gt;：知道编译器在哪替你兜底、哪里必须你亲自动手。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript Essentials Ch5 深写：宽与窄——一套贯穿全书的类型观</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch05-deep-narrowing/</link>
      <pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch05-deep-narrowing/</guid>
      <description>&lt;p&gt;第 5 章《Unions, Literals, and Narrowing》是全书的思想中枢（p77–108，11 道练习）。表面上它讲三个语法点，实际上在建立一套&lt;strong&gt;类型观&lt;/strong&gt;：类型不是标签，而是「可能性的集合」；写类型系统的程序，就是不断在「把集合说准确」和「用运行时检查把集合收小」之间往返。这篇深写按我自己的理解重组，把散在全章的概念串成一条线。&lt;/p&gt;</description>
    </item>
    <item>
      <title>从 .ts 到浏览器：打通 TypeScript 的开发流水线</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch03-typescript-in-the-development-pipeline/</link>
      <pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch03-typescript-in-the-development-pipeline/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript基础》 · 第3章 TypeScript在开发流程中　｜　本章回答一个最实际的问题：浏览器只认 JavaScript，TypeScript 怎么才能跑起来？从 tsc &amp;ndash;init 初始化项目，到转译产物几乎不变的“薄层”设计，再到 watch 模式、与 Vite 分工、用 noEmit 在 CI 把关类型，作者把 TypeScript 完整嵌入开发流水线。建议边读边在终端敲命令，亲手跑通第一个 Hello!。&lt;/p&gt;</description>
    </item>
    <item>
      <title>宽与窄的艺术：Union、Literal 与 Narrowing 全解</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch05-unions-literals-and-narrowing/</link>
      <pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch05-unions-literals-and-narrowing/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript基础》 · 第5章·联合、字面量和缩窄　｜　当一个值可能是 string 也可能是 null，类型该怎么写、怎么安全地用？本章给出完整答案：union 与 literal 类型负责精确声明可能性，宽/窄层级提供思维模型，narrowing 用运行时检查收窄类型，最后以 discriminated unions 收束成日常最实用的模式。本书是练习驱动的写法，建议边读边动手做完全部 11 道练习。&lt;/p&gt;</description>
    </item>
    <item>
      <title>冒号、推断与 any 的代价：搭好类型系统的地基</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch04-essential-types-and-annotations/</link>
      <pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-28-essentials-ch04-essential-types-and-annotations/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;《TypeScript基础》 · 第4章·基本类型和注解　｜　本章是全书的地基：学会用冒号书写类型注解，认识七种基本类型，理解 TypeScript 何时能替你推断、何时必须亲自动手，并警惕 any 带来的检查真空。建议边读边在编辑器中复现示例，20 个练习先自己动手再对照答案，体会「跟着错误信息走」的调试节奏。&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeScript 学习计划（agent harness 导向）</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-27-typescript-learning-plan/</link>
      <pubDate>Sun, 27 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-27-typescript-learning-plan/</guid>
      <description>&lt;p&gt;终点明确：&lt;strong&gt;开发一个 agent harness（TypeScript + Electron 系）&lt;/strong&gt;。本计划的任务不是&amp;quot;学完 TS&amp;quot;，而是给主线（见 /plan/ 的「agent harness 主线」）供给语言弹药：四周后达到&lt;strong&gt;识字&lt;/strong&gt;水平——拿着 IDE 字典（hover / Go to Definition）能读懂 harness 真码。识字即可开始读真码，读真码反向巩固语法，不等&amp;quot;熟练&amp;quot;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>《TypeScript Essentials》第 1 章导读：快速搭建你的 TypeScript 环境</title>
      <link>https://www.zimang.fun/topics/typescript/2026-09-27-essentials-ch01-kickstart-your-typescript-setup/</link>
      <pubDate>Tue, 10 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://www.zimang.fun/topics/typescript/2026-09-27-essentials-ch01-kickstart-your-typescript-setup/</guid>
      <description>&lt;h1 id=&#34;ch1-kickstart-your-typescript-setup-导读&#34;&gt;Ch1 Kickstart Your TypeScript Setup 导读&lt;/h1&gt;
&lt;h2 id=&#34;本章概要&#34;&gt;本章概要&lt;/h2&gt;
&lt;p&gt;第 1 章是全书的开胃菜，篇幅不长，目标只有一个：&lt;strong&gt;让你在一章之内理解 TypeScript 是什么、如何工作，并把开发环境跑起来&lt;/strong&gt;。内容分为三块：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;理念纠偏&lt;/strong&gt;：TypeScript 与 JavaScript 的本质区别是什么（答案不是&amp;quot;强类型&amp;quot;这么简单）&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;原理速览&lt;/strong&gt;：TypeScript 从编写到运行的完整工作流程&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;动手搭建&lt;/strong&gt;：安装 Node.js、pnpm 和 TypeScript 三件套&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;是否需要精读的判断&lt;/strong&gt;：如果你从未搭建过 TypeScript 环境，或一直以为&amp;quot;TypeScript = 强类型版 JavaScript&amp;quot;，建议完整阅读并跟着操作一遍；如果你已经理解 tsc 编译流程、用过 VS Code 的语言服务，本章可快速略读，直接跳到第 2 章。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
