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 annotations to NumberInputSkeleton #12877

Conversation

jpsorensen
Copy link
Contributor

Closes #12549

Convert existing propType definitions to Typescript annotations on the NumberInputSkeleton component. This is part of a broader effort to add Typescript annotations to components, tracked in #12513.

Changelog

Changed

  • NumberInput.Skeleton.js has been converted to tsx

Testing / Reviewing

  • In the packages/react directory, run yarn build, yarn storybook. In the storybook, navigate to NumberInputSkeleton and confirm that the component's behavior remains unchanged.
  • In NumberInput.stories.js, add // @ts-check as the first line in the file (temporarily, just for the sake of this test). Scroll down to NumberInputSkeleton and confirm that no error is displayed. Add hideLabel={6} and confirm that an error is displayed. Change to hideLabel={true} and confirm that the error goes away. Restore NumberInput.stories.js to its prior state.

Convert existing propType definitions to Typescript annotations on the
NumberInputSkeleton component. This is part of a broader effort to add
Typescript annotations to components, tracked in carbon-design-system#12513. Closes carbon-design-system#12549.

Type annotation changes only; no breaking feature changes.
@jpsorensen jpsorensen requested a review from a team as a code owner December 17, 2022 18:01
@github-actions
Copy link
Contributor

github-actions bot commented Dec 17, 2022

DCO Assistant Lite bot All contributors have signed the DCO.

@jpsorensen
Copy link
Contributor Author

I have read the DCO document and I hereby sign the DCO.

@jpsorensen
Copy link
Contributor Author

recheck

@netlify
Copy link

netlify bot commented Dec 17, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 3c89524
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/63c9a0586924650008999487
😎 Deploy Preview https://deploy-preview-12877--carbon-components-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 settings.

@netlify
Copy link

netlify bot commented Dec 17, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 3c89524
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/63c9a0584c043b00085bb34a
😎 Deploy Preview https://deploy-preview-12877--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 settings.

@kodiakhq kodiakhq bot merged commit 96da7e8 into carbon-design-system:main Jan 19, 2023
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.

Add TypeScript types to NumberInputSkeleton
3 participants