You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, using the same form object directly with FormPrimitive.Field from formsnap correctly narrows the type for the value prop, but using it with Form.Field from shadcn does not.
Describe the bug
For some reason, using the same
form
object directly withFormPrimitive.Field
from formsnap correctly narrows the type for thevalue
prop, but using it withForm.Field
from shadcn does not.This works:
(value is now the correct type of of the field from the form definition)
This does not:
(value is
unknown
)Reproduction
https://stackblitz.com/edit/github-dsnve4?file=src%2Froutes%2F%2Bpage.svelte,src%2Froutes%2F%2Bpage.server.ts
It doesn't show inline, but run
npm run check
and the error will appear for the<Form.Field>
case.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: