Open
Description
Hey,
First of all, thank you for your amazing work. This library and valibot
are very well designed libraries that I really enjoy using. Thanks!
Probably related to #144 and #173, I have Typescript errors when using optional nested fields.
You can find a reproduction here.
You should be able to see the errors I'm talking about in automation.tsx
:
- The
Field
type is inferred toundefined
for a nested field. - The
setValue
value
argument isnever
.
If you remove the optional suffix for schedule
, everything works as expected.
This is not a blocking issue obviously but it messes up with the great DX of this library.
Metadata
Assignees
Labels
No labels