TanStackT
TanStack2mo ago
5 replies
skinny-azure

Validation error type safety when using form composition

Is there any way to pass a type down for validation errors when using form composition? Looks like it comes back as any through useFieldContext, but for instance I know I'll always use Zod and so it should always be a ZodError in my case
Was this page helpful?