I recently moved to use InertiaJs with React Typescript, I tried to use the default layout for components as defined in Inertia docs: https://inertiajs.com/pages#default-layouts
But, in Phpstorm there is plenty of errors.
TS7006: Parameter page implicitly has an any type.
@hamzaelmaghari Are you trying to implement this into an existing project or is this a fresh installation?
Because if the installation went right you should already have the right app file with tsx files and not jsx.
@gych It's a fresh installation, as I should inform you that the installation is manual not such breeze or jetstream.
BTW everything is working great in the browser except the default page layout because as I think that InertiajsJs is not fully optimized for TypeScript.
@gych It's already render everything great, after some adjustements in app.tsx file default layout worked.
Now everything works fine, except psychological issues with red highlighting in the IDE.
@hamzaelmaghari Yes you still get this error because there is no type assigned to the page variable. Therefor it should use type any, without it throws this error. It won't break your code because its a type error but its bad practise to leave these errors as it is.
Give the code that I added in my previous reply a try