-
-
Notifications
You must be signed in to change notification settings - Fork 216
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: [1016] updated type definition of useForkRef with generic suppor… #1017
Conversation
@@ -19,7 +19,10 @@ function setRef(ref: AnyRef, value: HTMLElementOrNull) { | |||
* @param refA | |||
* @param refB | |||
*/ | |||
function useForkRef(refA: AnyRef, refB: AnyRef): CallbackRef | null { | |||
function useForkRef<T extends HTMLElement | null = HTMLElementOrNull>( |
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.
Amazing!
Codecov Report
@@ Coverage Diff @@
## main #1017 +/- ##
==========================================
- Coverage 91.13% 91.11% -0.02%
==========================================
Files 67 67
Lines 4028 4019 -9
Branches 665 664 -1
==========================================
- Hits 3671 3662 -9
Misses 356 356
Partials 1 1
Continue to review full report at Codecov.
|
🎉 This PR is included in version 5.11.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…t and null support
Bug #1016