-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add typescript types to fluid number input #17373
Add typescript types to fluid number input #17373
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
🙌
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17373 +/- ##
==========================================
- Coverage 76.83% 76.83% -0.01%
==========================================
Files 408 408
Lines 13945 13946 +1
Branches 4323 4323
==========================================
Hits 10715 10715
Misses 3056 3056
- Partials 174 175 +1 ☔ View full report in Codecov by Sentry. |
c49b590
import { FluidNumberInputProps } from './FluidNumberInput'; | ||
import { FluidNumberInputSkeletonProps } from './FluidNumberInput.Skeleton'; | ||
export { type FluidNumberInputProps, type FluidNumberInputSkeletonProps }; |
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.
@riddhybansal in addition to the export
, the type
identifier needs to be on the import
statements as well.
I think this should resolve the "The exported identifier "FluidNumberInputProps" is not declared in Babel's scope tracker as a JavaScript value binding, ...
" errors
Closes #17362
Add typescript types to FluidNumberInput, FluidNumberInputSkeleton, and converted index.js to index.tsx file
Changelog
Changed
Testing / Reviewing
Test if FluidNumberInput, FluidNumberInputSkeleton works as intended after adding types