Skip to content

Commit 05c94ca

Browse files
committed
docs: update changeset doc
1 parent c04738e commit 05c94ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.changeset/tasty-rice-trade.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ Just yield it within api handler:
88

99
```ts
1010
//...
11+
import { type APIGatewayProxyEvent, LambdaHandler } from "@effect-aws/lambda"
12+
//...
1113
const HelloLive = HttpApiBuilder.group(MyApi, "hello", (handlers) =>
1214
handlers.handle("hello", () =>
1315
Effect.gen(function* () {
14-
const { context, event } = yield* LambdaHandler.LambdaHandlerArgs
16+
const event = yield* LambdaHandler.event<APIGatewayProxyEvent>()
17+
const context = yield* LambdaHandler.context()
1518

1619
yield* Effect.logInfo("Lambda event", { event, context })
1720

0 commit comments

Comments
 (0)