-
Notifications
You must be signed in to change notification settings - Fork 448
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(types): add typings for EventBus #14122
Conversation
88f5bee
to
a527b0b
Compare
/backport to stable30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
src/types/eventBusTypes.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd keep event buss types in the origin EventBus
module. Both modules are not reusable and describe one entity - EventBus
, especially GenericEventHandler
and ExtendedEmitter
.
Events
less coupled, but if it is a single type with all the events of the event bus, I'd keep it in the bus. Alternatively, it can be an interface
instead of a type
, and be extendable in paces new events are created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it in one place then. We don't have yet much .ts places using it
Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
a527b0b
to
2de55d1
Compare
☑️ Resolves
🖌️ UI Checklist
🚧 Tasks
🏁 Checklist