Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

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.

@renatorib renatorib requested a review from pedronauck June 14, 2018 20:35
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants