I set up a brand new Laravel project and integrated Laravel Breeze along with Typescript support.
After creating a form (using useForm()
) and utilizing the .post()
method with one of the options selected (such as onFinish: () =>
), I encountered the following error:
The argument type {onFinish: () => {password: string, password_confirmation: string, name: string, email: string} & InertiaFormProps<{password: string, password_confirmation: string, name: string, email: string}>} is not compatible with the parameter type Partial | undefined
https://i.stack.imgur.com/ct7HI.png
When hovering over it in my code editor, it suggests adding all the members. Is this related to Typescript or am I missing something?