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

fix: export props for components #16455

Merged
merged 1 commit into from
May 21, 2024

Conversation

riddhybansal
Copy link
Contributor

Closes #16364 Accordion
Closes #16366 Structured List
Closes #16367 Button
Closes #16368 Button
Closes #16369 Column
Closes #16370 Dropdown
Closes #16371 FormLabel
Closes #16372 Grid

Exporting the typescript props for the above mentioned components as part of typescript adoption
(This PR is mentioned as 1, as we have more components where props needs to be exported so there will be more PRs regarding this)

Changelog

Changed

  • exporting interfaces from the .tsx files if not done
  • Importing them to index.ts and exporting them explicitly so that users can import them directly with the component.

Testing / Reviewing

No changes to the component, so new testing observations.

@riddhybansal riddhybansal requested a review from a team as a code owner May 13, 2024 12:23
Copy link

netlify bot commented May 13, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit f1ebb72
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66420652ccbc610008b38a5a
😎 Deploy Preview https://deploy-preview-16455--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
Contributor

@2nikhiltom 2nikhiltom left a comment

Choose a reason for hiding this comment

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

LGTM 🥳

Copy link
Contributor

@Gururajj77 Gururajj77 left a comment

Choose a reason for hiding this comment

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

Looks good!

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.

LGTM, just one comment but it doesn't have to hold up the merge.

Comment on lines +8 to +9
import { type GridProps } from './GridTypes';
export { type GridProps };
Copy link
Member

Choose a reason for hiding this comment

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

Could this be one line?

Suggested change
import { type GridProps } from './GridTypes';
export { type GridProps };
export { type GridProps } from './GridTypes';

@tay1orjones tay1orjones added this pull request to the merge queue May 21, 2024
Merged via the queue into carbon-design-system:main with commit 96214a9 May 21, 2024
20 checks passed
@carbon-automation
Copy link
Contributor

Hey there! v11.58.0 was just released that references this issue/PR.

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