Skip to content

Add support for typeof types and React.* types #224

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

Merged
merged 2 commits into from
Nov 9, 2017
Merged

Add support for typeof types and React.* types #224

merged 2 commits into from
Nov 9, 2017

Conversation

danez
Copy link
Collaborator

@danez danez commented Oct 22, 2017

Fixes #216

Add support for :

type Props = { component: typeof MyComponent };

And also for all the exported React Types like React.Node, React.Element, etc.

see tests for examples.

@danez danez added this to the v2 milestone Oct 22, 2017
@danez danez merged commit 07fc2cf into reactjs:master Nov 9, 2017
@danez danez deleted the typeof-react-types branch November 9, 2017 20:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant