-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
[BUG] TypeScript issue with parsedInput in useAction Hook #174
Comments
Need a link to a repo with a minimal reproduction example, thanks. |
Hi, I'm running into the same issue on Windows. |
was having the same issue - check VS code is using your workspace typescript version not the editors - that fixed it for me |
@vidforstner thanks for the link. However, I can't reproduce the issue: As @coreybain already said, this could be caused by a TypeScript version mismatch, see: |
@laurent512 is this the same issue as #175? |
@hadrysm If this is related to TS 5.5.2 can we close this issue in favor of this other one? |
Are you using the latest version of this library?
Is there an existing issue for this?
Describe the bug
Hi, I encountered a TypeScript error. The type for my object, which I am validating using zod, is always
any
.Reproduction steps
My action with zod:
parsedInput
is of type any:The same issue occurs in the component where I use the
useAction
hook:Expected behavior
My type for
parsedInput
should be:Minimal reproduction example
See reproduction steps
Operating System
macOs
Library version
7.0.2
Next.js version
14.2.1
Additional context
No response
The text was updated successfully, but these errors were encountered: