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

[Breaking] Improve request typing #3

Merged
merged 7 commits into from
Dec 26, 2023
Merged

Conversation

Matthiee
Copy link
Member

This PR aims to improve the request typing by inferring the Result type based on the Request<Result>.

Before

 final User user = await mediator.requests.send<User, GetUserByIdQuery>(getUserQuery);

After

 final User user = await mediator.requests.send(getUserQuery);

@Matthiee Matthiee added documentation Improvements or additions to documentation enhancement New feature or request Breaking Breaking change in the API labels Dec 24, 2023
@Matthiee Matthiee self-assigned this Dec 24, 2023
@Matthiee Matthiee merged commit 9286403 into master Dec 26, 2023
2 checks passed
@Matthiee Matthiee deleted the feature/better-send-typing branch December 26, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Breaking change in the API documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant