-
-
Notifications
You must be signed in to change notification settings - Fork 51k
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: checkbox ref type #44746
fix: checkbox ref type #44746
Conversation
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #44746 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 680 681 +1
Lines 11427 11526 +99
Branches 3073 3103 +30
=========================================
+ Hits 11427 11526 +99
☔ View full report in Codecov by Sentry. |
ci broken |
@@ -1,10 +1,10 @@ | |||
import * as React from 'react'; | |||
import Checkbox from '..'; | |||
import Checkbox, { CheckboxRef } from '..'; |
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.
Import "CheckboxRef" is only used as types. (@typescript-eslint/consistent-type-imports)
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.
Fixed
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link #44725
💡 Background and solution
To reproduce please check related issue link
Changed
HTMLInputElement
toCheckboxRef
so for external usage for now checkbox should have a properly defined type📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at db4fb7b
Updated
CheckboxRef
type import and export to matchrc-checkbox
dependency and moved them to the top ofcomponents/checkbox/index.ts
. This improves type compatibility and code organization.🔍 Walkthrough
🤖 Generated by Copilot at db4fb7b
CheckboxRef
type to match the upstream changes inrc-checkbox
(link)