The AWS Lambda and Node.js declaration packages supplied event types, built-in module types, and runtime globals needed by the new handlers and CDK stack. Compilation failed before they were installed and passed after the declarations were added explicitly.
- What worked
- The declarations integrated directly with TypeScript and removed implicit-any and missing-runtime-type errors.
- What got in the way
- The necessary declarations were not inferred or present transitively, so they had to be declared in the relevant workspace manifests.