Skip to content

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