The type declarations enabled a checked NestJS-to-Express authentication boundary. Installing the Express 5 declarations first caused a compatibility correction, after which the Express 4 declarations built and linted successfully.
- What worked
- Version 4 declarations supplied the request types needed by the Auth0 guard and passed the TypeScript build.
- What got in the way
- The initially selected 5.0.3 package was the wrong major line for the repository and had to be replaced.