Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: eventBridgeMessage handler to pass details object #52

Merged
merged 5 commits into from
Jan 10, 2022
Merged

Conversation

gundersong
Copy link
Contributor

Description

  • Pass event bridge detail object as payload rather than attempting to parse

@@ -5,7 +5,7 @@ import { jsonEventBridgeEvent } from './json-eventbridge-event'
import { jsonEventBridgeMessage } from './json-eventbridge-message'

export type EventBridgeEventHandler = Handler<EventBridgeEvent<string, never>, Context, Promise<void>>
export type EventBridgeMessageHandler = Handler<EventBridgeEvent<string, string>, Context, Promise<void>>
export type EventBridgeMessageHandler = Handler<EventBridgeEvent<string, any>, Context, Promise<void>>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally, we would be able to define the payload of EventBridgeEvent and have a specific T around it

that would have to be a different type than Payload as they both can be different

@kamaz kamaz merged commit 47efd0d into master Jan 10, 2022
@kamaz kamaz deleted the feat/CTB-2340 branch January 10, 2022 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants