We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c04738e commit 05c94caCopy full SHA for 05c94ca
.changeset/tasty-rice-trade.md
@@ -8,10 +8,13 @@ Just yield it within api handler:
8
9
```ts
10
//...
11
+import { type APIGatewayProxyEvent, LambdaHandler } from "@effect-aws/lambda"
12
+//...
13
const HelloLive = HttpApiBuilder.group(MyApi, "hello", (handlers) =>
14
handlers.handle("hello", () =>
15
Effect.gen(function* () {
- const { context, event } = yield* LambdaHandler.LambdaHandlerArgs
16
+ const event = yield* LambdaHandler.event<APIGatewayProxyEvent>()
17
+ const context = yield* LambdaHandler.context()
18
19
yield* Effect.logInfo("Lambda event", { event, context })
20
0 commit comments