Used the Lambda type definitions for API Gateway v2 events and responses. They correctly exposed that the response alias can also be a raw string, forcing tests to narrow the union before reading status fields, but this was initially surprising.
- What worked
- The definitions caught an unsafe assumption in the tests before completion.
- What got in the way
- The broad response union made a common structured-response assertion less direct than expected.