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

Export types for all available components #37

Merged
merged 10 commits into from
Sep 13, 2023
Merged

Conversation

fhlavac
Copy link
Collaborator

@fhlavac fhlavac commented Sep 11, 2023

@@ -80,7 +80,7 @@ export interface BatteryProps extends React.DetailedHTMLProps<React.HTMLAttribut
className?: string;
}

const Battery: React.FunctionComponent<BatteryProps> = ({ severity, label, labelHidden, className, ...props }: BatteryProps) => {
export const Battery: React.FunctionComponent<BatteryProps> = ({ severity, label, labelHidden, className, ...props }: BatteryProps) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The batter props are not exported still

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Hyperkid123 I think they are, but I may be missing something.

@@ -1,5 +1,4 @@
export { default } from './Battery';
export { default as Battery } from './Battery';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure to test the imports in a test environment. We don't want to loose any of these references. We are only looking for the extra types reference.

Copy link
Collaborator Author

@fhlavac fhlavac Sep 12, 2023

Choose a reason for hiding this comment

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

@Hyperkid123 do you think it is safer not to remove these explicit exports? I can add them back, maybe it's better to keep them explicitly listed. When testing that, haven't found any issues

@Hyperkid123 Hyperkid123 merged commit 75481c9 into patternfly:main Sep 13, 2023
4 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.0.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Nov 1, 2023

🎉 This PR is included in version 5.0.0-prerelease.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants