TanStackT
TanStack11mo ago
70 replies
urgent-maroon

How do I type my form if I need to pass it to other components?

Before in 0.40 I was doing:


  form: ReturnType<typeof useForm<DocumentFormData>
`

But now that doesn't work and I don't want to have to type every single type of the 10 types FormApi requires... If it can be avoided
Was this page helpful?