A typed task manager

The problem

Write a command-line task manager in TypeScript whose types make it impossible to put a task into an invalid state, with every command parsed from text into a typed command before it runs.

Requirements

Technologies

Step by step

  1. Design the Task, Status and Command types before writing any logic.
  2. Write the parser for each command, returning a Result.
  3. Write the command handlers with exhaustive switches.
  4. Add saving and loading, with a type guard for the loaded data.
  5. Add filtering and sorting with generic helper functions.

Expected result

A small, reliable tool whose types document every rule it follows.

How it is evaluated

Ways to improve it