MODULE 1
LANGUAGE COURSE · TYPESCRIPT
TypeScript:把資料契約提前到 build time,但不欺騙自己 runtime 已經安全。
這條課以 API boundary 為主軸。你會看到 static typing 能幫多少、不能幫多少,並親手把 unknown network payload 轉成可信的 domain model。
PrerequisitesJavaScript 36–43
Core chapters91–95
Cumulative projectTyped Course API Client
Modules
MODULE 2
MODULE 3
MODULE 4
MODULE 5
Project spine
Typed Course API Client
91unknown API boundary
92Course + UI state models
93runtime validators
94generic request helper
95toolchain / production debugging
Completion outcomes
- 能分清 compile-time 與 runtime。
- 能用 union 建模 UI state。
- 能把 unknown 驗證成 domain type。
- 能解釋 assertion ≠ validation。
- 能讀 generic contract。
- 能定位 type/build/runtime/data failure。