Closed MuaDDuB closed 1 day ago
We can also see that the id
property is also inferred as string | number, which is not the case π€
Yeah this is expected. Try sending a string or a number to your controller, and both should work. Hereβs the reasoning behind this: https://vinejs.dev/docs/html_forms_and_surprises#number-input-results-in-a-string-value
Ok thx for the explanation π
Hello π
Thx for this awesome lib and the clean work πͺ
I encounter an issue with the InferRequestType.
I got this validator :
It's used in the controller like this:
The router declares the route like this :
The generated API looks like this :
But when I use the InferRequestType, I see that the
totalWithTax
is declared as string | number π€Do you know what I could have done wrong or if there is an issue in the lib?
Right now, this is a blocker for me π