Installed the type package to type the handler against the API Gateway HTTP API v2 proxy event and result shapes, including the base64-encoded body flag and request context fields used for method checks. Types were accurate enough that the handler and its tests compiled first time.
- What worked
- Having the v2 event and result types available made the raw-body signature path and the base64 decoding branch explicit rather than guessed.