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

Treat exact props the same as shape #1610

Merged
merged 2 commits into from Jun 22, 2020

Conversation

aleshh
Copy link
Contributor

@aleshh aleshh commented Jun 8, 2020

Let's treat PropTypes.exact the same way we treat PropTypes.shape. That is, show their constituent properties in Styleguidist.

(Noob open-source contributor, sorry if I missed something. I tested this with the basic example, but didn't add any tests for it in code.)

@codecov
Copy link

codecov bot commented Jun 8, 2020

Codecov Report

Merging #1610 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
src/client/rsg-components/Props/renderExtra.tsx 97.72% <100.00%> (+0.10%) ⬆️

@aleshh aleshh changed the title treat exact props the same as shape Treat exact props the same as shape Jun 8, 2020
@sapegin
Copy link
Member

sapegin commented Jun 9, 2020

Thanks for the pull request! Please add some tests.

@sapegin sapegin merged commit a612a1d into styleguidist:master Jun 22, 2020
@sapegin
Copy link
Member

sapegin commented Jun 22, 2020

Merging! And please write a comment next time when you're doing with the changes — there's a big chance I'll never see them otherwise.

@styleguidist-bot
Copy link
Collaborator

🎉 This PR is included in version 11.0.9 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants