Closed ruiaraujo012 closed 2 weeks ago
Thank you for creating this issue. I will try to investigate in the next few weeks if we can support such a use case.
Thank you.
It's not an important feature to me, it's more of a nice to have. But it would be nice.
This will be possible 🔜
Thank you.
v1.0.0-beta.4 is available
TS still complains about it A spread argument must either have a tuple type or be passed to a rest parameter.ts(2556)
I'm forced to use as [v.RegexAction<string, string>]
Can you share a playground link?
Well, I'm unable to replicate, so it could be something with my codebase. If I manage to replicate, I'll share it here.
Thank you.
Okay. Because I have tested different use cases. As long as the array or action output is typed correctly, it should work. Note that it only works if the data type stays the same. Transformations are not allowed because they can't be tracked with TypeScript in this way.
Yes, it's probably something with my type definitions or because I'm using the return type of the zustand store.
Discussed in https://github.com/fabian-hiller/valibot/discussions/851