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

Added correct props type to provider constructor #204

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Added correct props type to provider constructor #204

merged 1 commit into from
Dec 18, 2023

Conversation

lukaswiklund
Copy link
Contributor

When passing the provider as a type to a function it's currently not compatible with ComponentType<{ children: ReactNode }> as the props in the constructor is not accepting children when the component does. The prop types in the constructor should be the same as the component itself.

@lukaswiklund
Copy link
Contributor Author

Hey @staylor, could you check this?

@staylor staylor merged commit a75c3ae into staylor:main Dec 18, 2023
@lukaswiklund lukaswiklund deleted the patch-1 branch December 19, 2023 20:28
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