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

Add typescript types to fluid number input #17373

Conversation

riddhybansal
Copy link
Contributor

Closes #17362

Add typescript types to FluidNumberInput, FluidNumberInputSkeleton, and converted index.js to index.tsx file

Changelog

Changed

  • Add typescript types to FluidNumberInput, FluidNumberInputSkeleton, and converted index.js to index.tsx file

Testing / Reviewing

Test if FluidNumberInput, FluidNumberInputSkeleton works as intended after adding types

@riddhybansal riddhybansal requested a review from a team as a code owner September 6, 2024 15:24
Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit fd303ac
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66db1eab37850600088dbe2b
😎 Deploy Preview https://deploy-preview-17373--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit fd303ac
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66db1eabfc8f8900099a858c
😎 Deploy Preview https://deploy-preview-17373--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit e1ebc47
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66e27b6e22259000080a89cc
😎 Deploy Preview https://deploy-preview-17373--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e1ebc47
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66e27b6e7943610008be10c4
😎 Deploy Preview https://deploy-preview-17373--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 76.83%. Comparing base (28032c3) to head (9f5056d).

Files with missing lines Patch % Lines
...nts/FluidNumberInput/FluidNumberInput.Skeleton.tsx 0.00% 3 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@tay1orjones tay1orjones added this pull request to the merge queue Sep 12, 2024
Merged via the queue into carbon-design-system:main with commit c49b590 Sep 12, 2024
36 checks passed
Comment on lines +7 to +9
import { FluidNumberInputProps } from './FluidNumberInput';
import { FluidNumberInputSkeletonProps } from './FluidNumberInput.Skeleton';
export { type FluidNumberInputProps, type FluidNumberInputSkeletonProps };
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript types to FluidNumberInput and its skeleton state
4 participants