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

fix(core): EventHandler subscribed event should be SlickEventData type #1327

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Jan 12, 2024

  • previously the 1st argument event was typed as any but in practical it will always be of type SlickEventData because a SlickEvent .notify() method always passes a SlickEventData instance as 1st argument

image
image

Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e008902) 98.0% compared to head (ddd4e2c) 98.0%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1327     +/-   ##
========================================
+ Coverage    98.0%   98.0%   +0.1%     
========================================
  Files         198     198             
  Lines       21284   21286      +2     
  Branches     7093    7098      +5     
========================================
+ Hits        20845   20847      +2     
  Misses        439     439             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghiscoding ghiscoding merged commit 2573310 into master Jan 12, 2024
5 checks passed
@ghiscoding ghiscoding deleted the bugfix/slickeventdata-type branch January 12, 2024 21:12
ghiscoding pushed a commit that referenced this pull request Jan 12, 2024
- continuation of previous PR #1327 to add proper types to SlickEventHandler arguments
ghiscoding added a commit that referenced this pull request Jan 12, 2024
* fix(core): SlickEvent handler event should be type of ArgType
- continuation of previous PR #1327 to add proper types to SlickEventHandler arguments
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