Open Mnigos opened 3 months ago
+1
Would you be interested in creating a PR to add the QueueEventListenerParams
utility type to the package? We could also include a usage example in the documentation to highlight the easiest approach (using that type) for other developers.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
I have created a
QueueEvents
listener and method parameter types are not inferred correctly which causes passing wrong parameters to the listener definition.I found a way to get this listener typed, but the solution is not the best
Describe the solution you'd like
Maybe
QueueEventsHost
class should have this methods defined so inferring types won't be so hard.Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
Better type safety.