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 CommandHandler type definition for handleOptions #123

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

alex-laycalvert
Copy link
Contributor

The original code specified that handleOptions was of the type HandleOptions<StreamVersion, EventStore<...>> using the emmett EventStore instead of the generic Store. This prevented TS from allowing you to pass any custom options from a custom implementation of event store to the command handler.

This fixes what I assume was a typo and allows you to have custom options again.

@alex-laycalvert
Copy link
Contributor Author

@oskardudycz thank you for all you do

@oskardudycz oskardudycz added this to the 0.20.1 milestone Oct 23, 2024
@oskardudycz oskardudycz added bug Something isn't working event store typing labels Oct 23, 2024
@oskardudycz
Copy link
Collaborator

The original code specified that handleOptions was of the type HandleOptions<StreamVersion, EventStore<...>> using the emmett EventStore instead of the generic Store. This prevented TS from allowing you to pass any custom options from a custom implementation of event store to the command handler.

This fixes what I assume was a typo and allows you to have custom options again.

Yup, that was my copy/paste mistake; I apologise for that and thank you for fixing it. I'm pulling that in and making the new release.

@oskardudycz thank you for all you do

I thank you; you've made my day with this comment ❤️

@oskardudycz oskardudycz merged commit a03cb2c into event-driven-io:main Oct 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working event store typing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants