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

Namespace 'React' has no exported member 'SetStateAction' - React.SetStateAction #4131

Closed
ynwd opened this issue Sep 12, 2023 · 2 comments · Fixed by #4132
Closed

Namespace 'React' has no exported member 'SetStateAction' - React.SetStateAction #4131

ynwd opened this issue Sep 12, 2023 · 2 comments · Fixed by #4132

Comments

@ynwd
Copy link

ynwd commented Sep 12, 2023

Similar with: #4114

Namespace 'React' has no exported member 'SetStateAction' - React.SetStateAction

Screenshot 2023-09-13 at 00 49 53
@rschristian
Copy link
Member

Look like we just need to re-export StateUpdater:

export type StateUpdater<S> = (value: S | ((prevState: S) => S)) => void;

@ynwd ynwd closed this as completed Sep 14, 2023
@rschristian
Copy link
Member

Let's keep this open, as it is legitimately missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants