Project · Intermediate · 6h
Project: Type a legacy module properly
Take an untyped or loosely typed module and give it precise types: unions, boundaries, strict mode, no any.
- typescript
- project
Inside this project
- Choose a real module with any, string-typed enums or unchecked JSON. Model its data with discriminated unions and literal types, add schema parsing at its boundaries, enable strict for it, and remove every any and cast. Keep behaviour identical, proven by tests or snapshots.
- Milestone 1: Safety net
- Milestone 2: Model
- Milestone 3: Boundaries
The full project opens with a membership that covers TypeScript.
Sign in if you already subscribe.
Sign in
