I encounter an error after updating from version 2.1.0 to version 3.0.0 on a snippet which was fine in 2.1.0.
The typescript error 2589 is raised by the IDE, the build also fails now.
I tried commenting some lines to identify the problematic code.
The error only seems to be generated by a "vine.string()" validation but not at all times either.With "vine.number()", there is no error.
Changing some symbols to snake_case also seems to mute the problem ?!
Context :
typescript : 5.7.3
node : 22.10.0
Snippet :
the commented lines are the ones that generate the errors
Package version
@vinejs/vine@3.0.0 | MIT | deps: 8 | versions: 19
Describe the bug
Hello,
I encounter an error after updating from version 2.1.0 to version 3.0.0 on a snippet which was fine in 2.1.0. The typescript error 2589 is raised by the IDE, the build also fails now.
I tried commenting some lines to identify the problematic code. The error only seems to be generated by a "vine.string()" validation but not at all times either.With "vine.number()", there is no error. Changing some symbols to snake_case also seems to mute the problem ?!
Context :
Snippet :
the commented lines are the ones that generate the errors
Reproduction repo
No response