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

feat(rabbitmq): add generic type to publish for simple type checking #491

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

iam10k
Copy link
Contributor

@iam10k iam10k commented Aug 5, 2022

This change provides a way to have basic type checking done when publishing messages.
By default it still uses the generic type any. public publish<T = any>( so no changes are needed for existing code.

Simple example of the benefit at development stage.
image

@WonderPanda WonderPanda merged commit 45afeb7 into golevelup:master Aug 19, 2022
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.

2 participants