in /node_modules/@inertiajs/react/types/useForm.d.ts we can see that :
errors: Partial<Record<keyof TForm, string>>
But in the docs, we have this usage :
redirect_to new_user_url, inertia: { errors: user.errors }
which actually create errors with type Partial<Record<keyof TForm, string[]>> instead.
Should we do something about it ?
in /node_modules/@inertiajs/react/types/useForm.d.ts we can see that :
errors: Partial<Record<keyof TForm, string>>But in the docs, we have this usage :
redirect_to new_user_url, inertia: { errors: user.errors }which actually create errors with type
Partial<Record<keyof TForm, string[]>>instead.Should we do something about it ?