Skip to content

chore(charts): Annotate Victory types for example docs #5315

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

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

dlabrecq
Copy link
Member

@dlabrecq dlabrecq commented Jan 7, 2021

The example docs for react-charts currently show Victory's complex object types. For example, the ChartArea component shows AnimatePropTypeInterface as the animate prop type. However, the Victory docs show the animate type as type: boolean | object.

This change adds @propType annotations in order to replace Victory's complex object types, shown in the example docs, with something more readable.

Fixes #2139

Before
Screen Shot 2021-01-07 at 2 53 49 PM

After
Screen Shot 2021-01-07 at 2 53 13 PM

redallen
redallen previously approved these changes Jan 7, 2021
@patternfly-build
Copy link
Contributor

patternfly-build commented Jan 7, 2021

Copy link
Member

@ddonahue007 ddonahue007 left a comment

Choose a reason for hiding this comment

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

LGTM

@ddonahue007 ddonahue007 merged commit 0f738e9 into patternfly:master Jan 7, 2021
@patternfly-build
Copy link
Contributor

Your changes have been released in:

Thanks for your contribution! 🎉

@dlabrecq
Copy link
Member Author

dlabrecq commented Jan 7, 2021

Thanks!

@dlabrecq dlabrecq deleted the 2139-chart-docs branch May 13, 2021 16:52
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.

Chart docs: annotate types
4 participants