The res abbreviated property within the RequestContext seems out of place. Recommending using the full response name instead.
Before
type RequestContext = {
request: Request;
event: APIGatewayProxyEvent;
context: Context;
res: Response;
};
After
type RequestContext = {
request: Request;
event: APIGatewayProxyEvent;
context: Context;
response: Response;
};