Skip to content

feat: use generic type for CloudEvent data - #446

Merged
lance merged 5 commits into
cloudevents:mainfrom
lance:lance/generic-event-data-type
Nov 29, 2021
Merged

lance merged 5 commits into
cloudevents:mainfrom
lance:lance/generic-event-data-type

Conversation

@lance

@lance lance commented Nov 20, 2021

Copy link
Copy Markdown
Member

Instead of using a big union of types, use a generic type for event data.

Fixes: #445

Signed-off-by: Lance Ball lball@redhat.com

Instead of using a big union of types, use a generic type for event data.

Fixes: cloudevents#445

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance added the type/enhancement New feature or request label Nov 20, 2021
@lance
lance requested a review from a team November 20, 2021 16:33
Comment thread test/integration/cloud_event_test.ts Resolved
Comment thread test/integration/cloud_event_test.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread test/integration/message_test.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Signed-off-by: Lance Ball <lball@redhat.com>
@lance

lance commented Nov 24, 2021

Copy link
Copy Markdown
Member Author

@matthewrobertson thank you for the excellent feedback. I have incorporated your suggestions, but do have a couple of questions inline.

Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Comment thread src/event/cloudevent.ts Resolved
Signed-off-by: Lance Ball <lball@redhat.com>
@matthewrobertson

Copy link
Copy Markdown

LGTM

@lance

lance commented Nov 25, 2021

Copy link
Copy Markdown
Member Author

@grant and @lholmquist - when you guys get a chance, a quick review here from one of you next week would be appreciated. Thanks!

@lholmquist lholmquist left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i needed to do a little reading up on TS generics, but LGTM

@lance
lance merged commit d941e2d into cloudevents:main Nov 29, 2021
@lance
lance deleted the lance/generic-event-data-type branch November 29, 2021 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The CloudEvent type should be generic

3 participants