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

Exported ThemeProviderProps #67

Merged
merged 6 commits into from
Nov 2, 2018
Merged

Conversation

janhartmann
Copy link

@janhartmann janhartmann commented Nov 1, 2018

This pull requests supports that you are able to use ThemeProviderProps in your components.

src/index.d.ts Outdated Show resolved Hide resolved
@HenriBeck
Copy link
Member

Do you really need the export? I think it would be simpler by just setting the theme prop manually.

@janhartmann
Copy link
Author

I like the contract between the component and the theme provider, to ensure the property is set from the ThemeProvider and not set by the user.

@HenriBeck
Copy link
Member

Okay, can you then also export the same type factory for flow? We should keep the types aligned as much as possible

Copy link
Member

@HenriBeck HenriBeck left a comment

Choose a reason for hiding this comment

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

Add flow types

@HenriBeck HenriBeck merged commit 5da8fb0 into master Nov 2, 2018
@HenriBeck HenriBeck deleted the export-theme-provider-prop-types branch November 2, 2018 22:54
@HenriBeck HenriBeck mentioned this pull request Nov 2, 2018
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.

None yet

2 participants