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

docs(types): fix type definitions #1678

Merged
merged 3 commits into from
May 18, 2017
Merged

docs(types): fix type definitions #1678

merged 3 commits into from
May 18, 2017

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented May 14, 2017

Fixes #1563.

Before

image

After

image

@codecov-io
Copy link

codecov-io commented May 14, 2017

Codecov Report

Merging #1678 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1678   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         141      141           
  Lines        2410     2410           
=======================================
  Hits         2404     2404           
  Misses          6        6
Impacted Files Coverage Δ
src/collections/Table/TableFooter.js 100% <100%> (ø) ⬆️
src/collections/Grid/Grid.js 100% <0%> (ø) ⬆️
src/modules/Dropdown/Dropdown.js 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2eaa7a...1c13e1a. Read the comment docs.

return item
})

const parseEnum = type => {
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this reduces the need for some of the logic in ComponentProps.js:

expandEnums()
renderEnums()

Copy link
Member Author

@layershifter layershifter left a comment

Choose a reason for hiding this comment

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

I've updated parser functions. renderEnums method was simpilified, too 👍

@levithomason levithomason merged commit bacf4b7 into master May 18, 2017
@levithomason levithomason deleted the docs/fix-types branch May 18, 2017 15:43
@levithomason
Copy link
Member

Awesome, thanks much sir! This will also help with the speed a bit, there's a pretty bad performance bug I need to trace down in the component doc page.

@levithomason
Copy link
Member

Released in [email protected].

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.

3 participants