Fix Inertia Head type
Closed this issue · 2 comments
ozziexsh commented
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
ozziexsh commented
looks like an open pr is ready for this here
and the related issue