We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When re-exporting a generic type that has a default type value, the default value may not be re-exported so it has to be omitted:
export type ReactElement<Props = Object, ElementType = any> = module.ReactElement<Props, ElementType>
If Object is not exported (and not a standard type), the default value should be removed:
Object
export type ReactElement<Props, ElementType = any> = module.ReactElement<Props, ElementType>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When re-exporting a generic type that has a default type value, the default value may not be re-exported so it has to be omitted:
If
Object
is not exported (and not a standard type), the default value should be removed:The text was updated successfully, but these errors were encountered: