gezel Gezel Handboek

Type-Safety Pass

Tighten the types of a module — eliminate any/implicit-any, add precise annotations, narrow unions, and make illegal states unrepresentable — without changing runtime behavior. Audits FIRST to inventory every loose type, unsafe cast, and missing annotation, then replaces them with precise types, then a reviewer confirms the type-checker is clean under strict settings and behavior is unchanged. Covers killing any, strict null checks, discriminated unions, generics, type narrowing, removing unsafe casts, and compile-clean-under-strict verification.

How it runs

#StepWho runs itWhat happens
1Audit the typesDeveloperinventory every any, cast, and missing annotation
2Fix the typesDeveloperreplace loose types with precise ones
3Verify type safetyReviewerconfirm strict-clean and behavior unchanged
4EvaluateReviewerGrade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.
5FinishDeveloperAll acceptance criteria met. Stamp a short summary and report DONE.

Say something like "tighten the types" or "kill any types" or "add type annotations" or "make this type-safe" or "fix type errors" in chat to start it.

Watch this article as a slideshow