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

Typings - Fixes typescript errors for children prop #8

Merged
merged 1 commit into from
Apr 25, 2017
Merged

Typings - Fixes typescript errors for children prop #8

merged 1 commit into from
Apr 25, 2017

Conversation

iRoachie
Copy link
Contributor

Typescript doesn't have a way to reinforce nested components.
Example in our case the children prop.

This pr makes the children prop optional for typescript however the user will still get the warning from React.propTypes.isRequired.

Reference microsoft/TypeScript#6471

@hectahertz hectahertz merged commit 201d4b6 into hectahertz:master Apr 25, 2017
@iRoachie iRoachie deleted the patch-1 branch April 25, 2017 14:19
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.

2 participants