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

Add optional context prop type definition #245

Merged
merged 1 commit into from Feb 5, 2019
Merged

Add optional context prop type definition #245

merged 1 commit into from Feb 5, 2019

Conversation

autarc
Copy link
Contributor

@autarc autarc commented Jan 23, 2019

Purpose

As the library got updated to support a custom context prop (e.g a shared ReactReduxContext with the provider) the type definitions weren't updated. Using typescript an error will be thrown because of the invalid signature.

This PR adds the optional property and uses the matching type to be compatible again.

@supasate
Copy link
Owner

supasate commented Feb 5, 2019

LGTM! Thanks for your contribution!

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