<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>基础部分 on 编程那些事儿</title><link>https://before80.github.io/prgms/Ts/basic/</link><description>Recent content in 基础部分 on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Fri, 27 Mar 2026 21:25:30 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Ts/basic/index.xml" rel="self" type="application/rss+xml"/><item><title>第1章 TypeScript概述与环境搭建</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-01-TypeScript-Overview-and-Development-Environment/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-01-TypeScript-Overview-and-Development-Environment/</guid><description>&lt;h2 id="11-typescript-是什么"&gt;1.1 TypeScript 是什么&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;JavaScript是你在凌晨3点写的代码，TypeScript是你第二天早上7点重新写的代码——只不过这次加了类型。&amp;rdquo; —— 某位被undefined和null折磨疯了的程序员&lt;/p&gt;</description></item><item><title>第2章 类型基础：原始类型与类型注解</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-02-Primitive-Types-and-Type-Annotations/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-02-Primitive-Types-and-Type-Annotations/</guid><description>&lt;h1 id="第-2-章-类型基础原始类型与类型注解"&gt;第 2 章 类型基础：原始类型与类型注解&lt;/h1&gt;
&lt;h2 id="21-类型概述"&gt;2.1 类型概述&lt;/h2&gt;
&lt;p&gt;在正式进入TypeScript的类型世界之前，我们需要先了解一下&amp;quot;类型&amp;quot;这个概念。&lt;/p&gt;</description></item><item><title>第3章 特殊类型与枚举</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-03-Special-Types-and-Enums/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-03-Special-Types-and-Enums/</guid><description>&lt;h1 id="第-3-章-特殊类型与枚举"&gt;第 3 章 特殊类型与枚举&lt;/h1&gt;
&lt;h2 id="31-any-类型"&gt;3.1 any 类型&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;any&lt;/code&gt;是TypeScript中最&amp;quot;特殊&amp;quot;的类型——它是所有类型的超集，代表&amp;quot;任意类型&amp;quot;。使用&lt;code&gt;any&lt;/code&gt;等于告诉TypeScript：&amp;ldquo;这一块我说了算，不要检查我。&amp;rdquo;&lt;/p&gt;</description></item><item><title>第4章 接口与类型别名</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-04-Interfaces-and-Type-Aliases/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-04-Interfaces-and-Type-Aliases/</guid><description>&lt;h1 id="第-4-章-接口与类型别名"&gt;第 4 章 接口与类型别名&lt;/h1&gt;
&lt;h2 id="41-type-别名"&gt;4.1 type 别名&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;类型别名&lt;/strong&gt;（Type Alias）是TypeScript中给类型起名字的方式。就像你给变量起名字一样，类型别名让你可以给复杂的类型起一个简短的名字，让代码更易读。&lt;/p&gt;</description></item><item><title>第5章 联合类型、交叉类型与可辨识联合</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-05-Union-Types-Intersection-Types-and-Discriminated-Unions/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-05-Union-Types-Intersection-Types-and-Discriminated-Unions/</guid><description>&lt;h1 id="第-5-章-联合类型交叉类型与可辨识联合"&gt;第 5 章 联合类型、交叉类型与可辨识联合&lt;/h1&gt;
&lt;h2 id="51-联合类型union-types"&gt;5.1 联合类型（Union Types）&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;联合类型&lt;/strong&gt;是TypeScript中表示&amp;quot;可以是多种类型之一&amp;quot;的类型。它就像一把钥匙能开多把锁——一个变量可以是几种类型中的任意一种。&lt;/p&gt;</description></item><item><title>第6章 类型守卫、类型断言与类型收窄</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-06-Type-Guards-and-Narrowing/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-06-Type-Guards-and-Narrowing/</guid><description>&lt;h1 id="第-6-章-类型守卫类型断言与类型收窄"&gt;第 6 章 类型守卫、类型断言与类型收窄&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;如果说 TypeScript 是一门艺术，那么类型收窄就是这门艺术的&amp;quot;透视技法&amp;quot;——它让你在复杂的类型迷宫中看清前路，而不是一头撞死在 &lt;code&gt;any&lt;/code&gt; 墙上。&lt;/p&gt;</description></item><item><title>第7章 类型运算与工具类型</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-07-Type-Operations-and-Utility-Types/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-07-Type-Operations-and-Utility-Types/</guid><description>&lt;h1 id="第-7-章-类型运算与工具类型"&gt;第 7 章 类型运算与工具类型&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;如果说类型是 TypeScript 世界的&amp;quot;物质&amp;quot;，那么类型运算就是&amp;quot;化学反应的催化剂&amp;quot;——它让你把简单的类型组装成复杂的类型系统，让类型定义既优雅又 DRY。&lt;/p&gt;</description></item><item><title>第8章 函数类型系统</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-08-Function-Type-System/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-08-Function-Type-System/</guid><description>&lt;h1 id="第-8-章-函数类型系统"&gt;第 8 章 函数类型系统&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;函数是 JavaScript/TypeScript 世界的一等公民——函数式编程、单体应用、事件驱动，统统离不开函数。TypeScript 的函数类型系统让你在定义函数时有&amp;quot;火眼金睛&amp;quot;，一眼看穿参数和返回值的类型猫腻。&lt;/p&gt;</description></item><item><title>第9章 泛型</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-09-Generics/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-09-Generics/</guid><description>&lt;h1 id="第-9-章-泛型"&gt;第 9 章 泛型&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;泛型——Generics，英文直译是&amp;quot;通用类型&amp;quot;。但这个名字起得有点误导，因为它不是&amp;quot;通用万能&amp;quot;，而是&amp;quot;模具通用&amp;quot;。就像一个月饼模具，你可以用它做莲蓉月饼、豆沙月饼、五仁月饼——模具本身没变，但产出的月饼馅料各不相同。泛型就是 TypeScript 世界里的&amp;quot;月饼模具&amp;quot;。&lt;/p&gt;</description></item><item><title>第10章 类与面向对象</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-10-Classes-and-Object-Oriented-Programming/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-10-Classes-and-Object-Oriented-Programming/</guid><description>&lt;h1 id="第-10-章-类与面向对象"&gt;第 10 章 类与面向对象&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;如果说 TypeScript 是一门语言，那类就是这门语言的&amp;quot;贵族血统&amp;quot;——它把 JavaScript 从&amp;quot;草根函数联盟&amp;quot;一下子拉到了&amp;quot;面向对象殿堂&amp;quot;。但别被唬住了，TypeScript 的类其实就是一个&lt;strong&gt;带类型注解的构造函数语法糖&lt;/strong&gt;，理解了这一点，就没什么好怕的。&lt;/p&gt;</description></item><item><title>第11章 模块系统与声明文件</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-11-Module-System-and-Declaration-Files/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-11-Module-System-and-Declaration-Files/</guid><description>&lt;h1 id="第-11-章-模块系统与声明文件"&gt;第 11 章 模块系统与声明文件&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;如果说 TypeScript 是一座繁华的城市，模块系统就是城市的交通网络——没有它，所有的代码都挤在同一条马路上，乱成一锅粥。模块系统让你把代码拆分成独立的小区，每个小区有自己的出入口（导入/导出），互不干扰，各司其职。&lt;/p&gt;</description></item><item><title>第12章 tsconfig.json完整配置指南</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-12-tsconfig-json-complete-configuration-guide/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-12-tsconfig-json-complete-configuration-guide/</guid><description>&lt;h1 id="第-12-章-tsconfigjson-完整配置指南"&gt;第 12 章 tsconfig.json 完整配置指南&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;本章说明&lt;/strong&gt;：tsconfig.json 是 TypeScript 项目的心脏，本章按配置项的功能分组，每组内按使用频率排序，并说明配置之间的依赖关系与常见场景的推荐组合。&lt;/p&gt;</description></item><item><title>第13章 TypeScript 5.x ~ 6.x 新特性详解</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-13-TypeScript-5x-6x-new-features/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-13-TypeScript-5x-6x-new-features/</guid><description>&lt;h1 id="第-13-章-typescript-5x--6x-新特性详解"&gt;第 13 章 TypeScript 5.x ~ 6.x 新特性详解&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;本章说明&lt;/strong&gt;：TypeScript 从 5.0 到 6.x，引入了大量让人眼前一亮的新特性。本章按版本时间线，从实际应用角度讲解每个特性的设计动机、语法和典型使用场景，让你不仅「知道有这回事」，更能「知道什么时候用它」。&lt;/p&gt;</description></item><item><title>第14章 React + TypeScript 实战</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-14-React-TypeScript-practical-guide/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-14-React-TypeScript-practical-guide/</guid><description>&lt;h1 id="第-14-章-react--typescript-实战"&gt;第 14 章 React + TypeScript 实战&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;本章说明&lt;/strong&gt;：React + TypeScript 是现代前端开发的标配组合。本章从环境搭建讲起，覆盖函数组件类型、Hooks 类型、事件处理、常用模式和第三方组件库类型化，让你从零到生产级掌握 React + TypeScript 的最佳实践。&lt;/p&gt;</description></item><item><title>第15章 Node.js + TypeScript 实战</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-15-Node.js-and-TypeScript-in-Practice/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-15-Node.js-and-TypeScript-in-Practice/</guid><description>&lt;h1 id="第-15-章-nodejs--typescript-实战"&gt;第 15 章 Node.js + TypeScript 实战&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;写 TypeScript 只会在浏览器里玩？那你只解锁了这门语言 20% 的成就。Node.js + TypeScript 才是真正的完全体——后端 API、数据库操作、文件系统、命令行工具，统统拿下。本章就是你的&amp;quot;全栈 TypeScript 修炼手册&amp;quot;。&lt;/p&gt;</description></item><item><title>第16章 装饰器</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-16-Decorators/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-16-Decorators/</guid><description>&lt;h1 id="第-16-章-装饰器"&gt;第 16 章 装饰器&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;装饰器——Decorators，这是 TypeScript 里最&amp;quot;魔幻&amp;quot;的特性之一。它让你用一种类似&amp;quot;注解&amp;quot;的语法，给类、方法、属性&amp;quot;贴标签&amp;quot;，从而改变它们的行为。听起来很美好，但装饰器也是 TypeScript 里的&amp;quot;实验性禁区&amp;quot;——语法改了又改，提案换了好几版，到现在终于要修成正果了。&lt;/p&gt;</description></item><item><title>第17章 编译器原理与语言服务</title><link>https://before80.github.io/prgms/Ts/basic/Chapter-17-Compiler-Architecture-and-Language-Services/</link><pubDate>Thu, 26 Mar 2026 21:05:00 +0800</pubDate><guid>https://before80.github.io/prgms/Ts/basic/Chapter-17-Compiler-Architecture-and-Language-Services/</guid><description>&lt;h1 id="第-17-章-编译器原理与语言服务"&gt;第 17 章 编译器原理与语言服务&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;你每天都在用 TypeScript 的编译器——&lt;code&gt;tsc&lt;/code&gt; 命令、VS Code 的红色波浪线、鼠标悬停的类型提示——但你知道这些功能背后是怎么工作的吗？TypeScript 编译器是一个由 Scanner、Parser、Binder、Checker、Emitter 五个阶段组成的精密机器。本章就来拆解这台机器，让你理解它为什么有时候快，有时候慢得要命。&lt;/p&gt;</description></item></channel></rss>