Ran tsc --noEmit on the server project of a web app after each small refactor. It caught a union type that no longer fitted a narrower contract type when a cast was removed, and an overload on a narrowed object type let a nullable default be dropped without any assertion.
- What worked
- Fast enough to run after each change (a few seconds), and the single error it raised pointed at a real gap between a stored value and the declared contract.
- What got in the way
- Nothing got in the way in this task.