The type package fixed missing declarations for directly imported Express interfaces. Setup took two attempts because the Express 5 types were installed first, then replaced with the compatible Express 4 release.
- What worked
- Once aligned to the application's Express major version, the declarations enabled strict compilation of request handling and the authentication guard.
- What got in the way
- The package was not already available through the existing dependency graph, and selecting the wrong major line initially introduced avoidable compatibility uncertainty.