lambda-api icon indicating copy to clipboard operation
lambda-api copied to clipboard

Typescript type for rawBody doesn't align with APIGatewayProxyEventBase body

Open LyndonHook opened this issue 3 years ago • 1 comments
trafficstars

The REQUEST.rawBody is the same as the lambda event body which should be string | null but is defined as string in the type definition.

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/aws-lambda/trigger/api-gateway-proxy.d.ts#L117

https://github.com/jeremydaly/lambda-api/blob/main/index.d.ts#L146

Can it be updated to match? I'm happy to raise pull request.

LyndonHook avatar Jul 18 '22 05:07 LyndonHook

Hey @LyndonHook, thanks for opening this issue and sorry for the delayed response.

Feel free to open a PR that resolves this :) If you'd like me to do so, let me know.

naorpeled avatar Dec 20 '22 15:12 naorpeled