ozziexsh/laravel-jetstream-react

Fix Inertia Head type

Closed this issue · 2 comments

We currently need to import the Head component from inertia like this

This will allow us to remove the

// @ts-ignore
import { Head } from '@inertia/inertia-react';

because the type isn't being exported from the types file

https://github.com/inertiajs/inertia/blob/master/packages/inertia-react/index.d.ts#L9

but you can see that the implementation is being exported

https://github.com/inertiajs/inertia/blob/master/packages/inertia-react/src/Head.js

https://github.com/inertiajs/inertia/blob/master/packages/inertia-react/src/index.js#L4

looks like an open pr is ready for this here

inertiajs/inertia#855

and the related issue

inertiajs/inertia#824

fixed in e786bb7