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 extractTypeDescribedValue to PropsTable #38

Merged
merged 2 commits into from
Jun 15, 2018
Merged

Conversation

renatorib
Copy link
Contributor

@renatorib renatorib commented Jun 14, 2018

Fixes #21

Description

Treat different kind of prop types.
It ignore complex types, like recursive types and others.
Good reference: https://github.com/reactjs/react-docgen/blob/55bbefed8321d535e53786b684708bd618cc15fb/src/utils/__tests__/getPropType-test.js

Pre-merge checklist

  • Test

@albinekb
Copy link

I think it would be cool to add it as JSX tags, so we could style the different types?

@renatorib
Copy link
Contributor Author

Yeah, I'm thinking improve this PropsTable later. But for now I only want to fix the bugs.

@pedronauck
Copy link
Member

Thanks @renatorib 🙏

@pedronauck pedronauck merged commit e2ccc51 into master Jun 15, 2018
@pedronauck pedronauck deleted the fix-propstable branch June 15, 2018 21:08
pedronauck pushed a commit that referenced this pull request Jun 15, 2018
* fix(docz): add extractTypeDescribedValue to PropsTable

* fix(docz): show PropsTable shape in brackets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants