When developing a web app with Laravel 12, Inertia.js, React.js, and TypeScript, a TypeScript error occurred when using useForm from Inertia.
Changing the interface to a type fixed the issue of the index signature compatibility error.
Interfaces in TypeScript do not allow excess properties unless an index signature is explicitly declared, while types are more flexible for dynamic key access.
The author hopes this solution helps others facing similar challenges with Inertia and TypeScript.