Manuals / TypeScript / Checkpoint 5
B · Modeling · intermediate · Gate · Week 2–3 · Checkpoint 5 of 11
Checkpoint A — Strict types & unions
Before generics and utilities, prove strict setup works and you can model real states with unions. Fix gaps before Phase C.
Path progress41%
Step 1 of 2
Pass criteria
- tsconfig strict: true, npm run typecheck script works
- Core utils converted to .ts with typed params and returns
- Domain models (User, Post, etc.) in types/models.ts
- FetchState or Result discriminated union in use
- Zero any (or each any has // ponytail: escape hatch comment)
- Can explain type vs interface in one sentence
Do this now
Audit each criterion. Fix failures before continuing.
Was this step clear?
Chapter learning outcomes
- Type safety self-check
Clear these before you leave
Side quest
Typecheck green
npm run typecheck && npm run test:run both green on your project.