-
Notifications
You must be signed in to change notification settings - Fork 2k
fix: typescript declarations for Slider and SliderSkeleton #20833
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
base: main
Are you sure you want to change the base?
Conversation
Those components do not have a property named "propTypes", but the declarations in Slider.d.ts and Slider.Skeleton.d.ts claimed they did. I think the problem happens because there's some magic that tries to generate Typescript declarations based on the PropTypes, and that is fragile. I followed the example of Row.tsx to avoid / workaround that issue. Fixes carbon-design-system#20832.
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20833 +/- ##
==========================================
- Coverage 92.35% 92.32% -0.03%
==========================================
Files 511 511
Lines 37247 37247
Branches 5726 5669 -57
==========================================
- Hits 34398 34388 -10
- Misses 2700 2711 +11
+ Partials 149 148 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@adamalston - You may want to review this as the problem started with your #20329 (although Slider's typescript declarations before your PR were also broken, but in a different way). |
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.
looks good to me!
Closes #20832.
Fix Typescript declarations for Slider and SliderSkeleton.
Those components do not have a property named "propTypes", but the declarations in Slider.d.ts and Slider.Skeleton.d.ts claimed they did.
I think the problem happens because there's some magic that tries to generate Typescript declarations based on the PropTypes, and that is fragile. I followed the example of Row.tsx to avoid / workaround that issue.
Changelog
Changed
Testing / Reviewing
Built my application without any Typescript errors.
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
More details can be found in the pull request guide