Skip to main content
友田 陽大

Category

型安全・バリデーション(TypeScript / Zod)の実践ガイド

型安全は「方針」で終わらせず、コンパイラとCIで強制してこそ価値が出ます。tsconfigの厳格化、any/as/enumの排除、境界でのZodによる parse、NeverErrorでの網羅性、ブランド型、E2Eの型一致、モノレポの型カバレッジ——不正な状態を表現不能にし、チームが速く変更し続けても壊れない規律を扱います。

5 articles in total

Foundational guide

Foundational guide (start here)

TypeScript
アーキテクチャ設計
型安全性
B2B SaaS
フロントエンド

Production TypeScript Type-Safety Discipline: Banning any, Guarding Boundaries with Zod, and Forcing Exhaustiveness with NeverError

A practical guide to not letting type safety end as a 'policy.' Explained with real production code: strict-family tsconfig, banning any/as/enum, SSoT design parsing the boundary with Zod, forcing exhaustiveness with NeverError, satisfies, branded types, and type coverage in CI.

20 min read

Related practical articles