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

fix: update return type for @types/react #13

Closed
wants to merge 1 commit into from

Commits on Jun 26, 2023

  1. fix: update return type for @types/react

    In @types/react version 2.14 (could have started earlier), the return type of PolymorphicForwardRefExoticComponent started being incorrect causing a TS error. 
    
    When changing it to return React.ReactNode instead of React.ReactElement, it works again.
    alvarlagerlof committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    131939c View commit details
    Browse the repository at this point in the history