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

refactor: ♻️ refactor Events to use enum and better type checking #56

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thkruz
Copy link

@thkruz thkruz commented Dec 29, 2023

There was a problem with the onHover event that led me down a rabbit hole. With multiple developers it seems almost a necessity to use an enum for events to make sure we aren't doing the same thing with different string names. I also added better typing for the fireEvent method to make sure you are passing the correct data. Sorry this is a large change.

There was a problem with the onHover event that led me down a rabbit hole. With multiple developers it seems almost a necessity to use an enum for events to make sure we aren't doing the same thing with different string names. I also added better typing for the fireEvent method to make sure you are passing the correct data. Sorry this is a large change.
Missed these when trying to commit changes only related to the events
@ajmas
Copy link
Owner

ajmas commented Jan 9, 2024

Just need to deal with a merge conflict here.

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