Master discriminated union reducer
Insane TypeScript arena: tagged unions, exhaustive checks, and reducer safety
Log in and clear the lower tiers to unlock this mission.
Missing prerequisites: typescript-easy-discriminated-union
A billing reducer accepts several action shapes and silently ignores new actions. You are working inside a TypeScript monorepo, and the arena only clears when the result is safe, deterministic, and explainable.
Learn to apply tagged unions, exhaustive checks, and reducer safety in a TypeScript monorepo while explaining the invariant, safety constraints, and hidden edge cases.
- Demonstrates tagged unions, exhaustive checks, and reducer safety
- Handles the visible sample and hidden edge cases
- Keeps output deterministic and explainable
- Avoids unsafe dynamic execution
Clear the route first
You can read the mission brief, but the editor, hints, tests, and submit flow stay locked until progression or plan access catches up.
Test Results
Run the visible checks when your first pass is ready.
Clear Protocol
Rewards
Mission Route
Hints
Hints are metered and logged for No Hint Hero runs.
Genie Mentor Core
Hint protocol / contextual guardrails active