Skip to content

fix: add explicit children prop typing #26

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erictaylor
Copy link

The new @types/react@^18 package ships with breaking changes. One such change is that children prop is no longer automatically included as part of the React.Component typing. Components need to opt-in to the children prop now.

This PR adds explicit children prop typing to the components the library exposes.

Fixes issues with incoming @types/react@^18 breaking changes.
@erictaylor
Copy link
Author

Pinging @trevorr for review.

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.

1 participant