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

feat(Table): add typescript type annotations to Table #13372

Merged
merged 11 commits into from
Mar 23, 2023

Conversation

aze3ma
Copy link
Contributor

@aze3ma aze3ma commented Mar 17, 2023

Closes #12517

Convert existing propType definitions to typescript annotations on the Table component.
This is part of a broader effort to add Typescript annotations to components, that is originally tracked in #12517.

Changelog

New

  • Add typescript type annotations for Table
  • Add typescript type annotations for TableContext (due to Table depending on it).

Changed

  • packages/react/src/components/DataTable/Table.js to packages/react/src/components/DataTable/Table.tsx
  • packages/react/src/components/DataTable/TableContext.js to packages/react/src/components/DataTable/TableContext.ts

Removed

  • N/A

Testing / Reviewing

  • Confirming running yarn build successfully in packages/react and running yarn storybook checks that inside the DataTable everything is renders correctly without any errors.
  • Look at the components references and tested that the API of the component works smoothly and suggesting the types of the props.

@aze3ma aze3ma requested a review from a team as a code owner March 17, 2023 21:48
@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2023

DCO Assistant Lite bot All contributors have signed the DCO.

@netlify
Copy link

netlify bot commented Mar 17, 2023

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7a5bb82
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/641c655ffbae6d00088ad010
😎 Deploy Preview https://deploy-preview-13372--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 Mar 17, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 7a5bb82
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/641c655f85353000073c9f63
😎 Deploy Preview https://deploy-preview-13372--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.

@aze3ma
Copy link
Contributor Author

aze3ma commented Mar 19, 2023

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

@aze3ma
Copy link
Contributor Author

aze3ma commented Mar 19, 2023

recheck

@aze3ma aze3ma requested review from tay1orjones and removed request for tw15egan and andreancardona March 22, 2023 13:15
@tay1orjones tay1orjones requested a review from tw15egan March 22, 2023 14:35
@aze3ma aze3ma removed the request for review from tw15egan March 23, 2023 14:38
@aze3ma aze3ma requested review from francinelucca and tay1orjones and removed request for francinelucca and tay1orjones March 23, 2023 14:38
@aze3ma aze3ma requested a review from francinelucca March 23, 2023 14:42
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 Table
3 participants