Skip to content

feat: add custom prop types to propTypes object#39

Merged
HendrikThePendric merged 3 commits intomasterfrom
append-custom-props-tp-prop-types
Sep 11, 2019
Merged

feat: add custom prop types to propTypes object#39
HendrikThePendric merged 3 commits intomasterfrom
append-custom-props-tp-prop-types

Conversation

@HendrikThePendric
Copy link
Copy Markdown
Contributor

@HendrikThePendric HendrikThePendric commented Sep 4, 2019

This should address #38, but in a slightly different way. We now only expose the default export (propTypes) and make sure our custom propTypes are attached. Let me know if you guys would prefer to also expose the individual custom prop-types here...

Fixes #38.

@HendrikThePendric
Copy link
Copy Markdown
Contributor Author

Update:
as @amcgee pointed out on Slack, it would be good to expose the named functions separately too. I couldn't work out a more elegant way to do this.... All suggestions are welcome.

Copy link
Copy Markdown
Contributor

@varl varl left a comment

Choose a reason for hiding this comment

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

Looks fine, we can refactor with something "prettier" later. 🙆‍♂️

@HendrikThePendric HendrikThePendric merged commit e23ffb7 into master Sep 11, 2019
dhis2-bot added a commit that referenced this pull request Sep 11, 2019
# [1.1.0](v1.0.4...v1.1.0) (2019-09-11)

### Features

* add custom prop types to propTypes object ([#39](#39)) ([e23ffb7](e23ffb7))
@dhis2-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@HendrikThePendric HendrikThePendric deleted the append-custom-props-tp-prop-types branch September 11, 2019 07:49
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.

Re-export react/prop-types as the default export

3 participants